| Clears a blackboard.
bb_clear(+Board, +Key)
bb_clear/2 removes all elements from the inner blackboard
identified with Key, belonging to the outer blackboard Board.
This predicate is equivalent to:
bb_get(Board, Key, SubBoard) -> bb_clear(SubBoard) ; true
Arguments
Board blackboard
Key ground term
Examples
bb_create(SparseArray),
bb_put(SparseArray, 7, 563, 10),
% elements: 7 -> { 365 -> 10 }
bb_put(SparseArray, 7, 43, 15),
% elements: 7 -> { 365 -> 10, 43 -> 15 }
bb_put(SparseArray, 365, 5, 20),
% elements: 7 -> { 365 -> 10, 43 -> 15 }, 365 -> { 5 -> 20 }
bb_clear(SparseArray, 7)
% elements: 7 -> {} , 365 -> { 5 -> 20 }
Standard
This predicate is not part of the ISO-Prolog Standard.
See also
bb_clear/1,
bb_clear_2/2,
bb_create/1,
bb_contains/2,
bb_contains_key/2,
bb_get/3,
bb_get_4/4,
bb_put/3,
bb_put_4/4,
bb_remove/2.
bb_keys/2.
bb_elements/2.
|