bb_remove/2

deletes a pair (key plus term) from a blackboard.

bb_remove(+BoardName, +Key)

bb_remove/2 removes the tuple with the key Key from the blackboard Board. If the key doesn't exist, bb_remove succeeds without modifying the blackboard.

Arguments

Board                  blackboard
Key                    ground term

Examples

Assume there exists a blackboard 'blackboard' with pairs (100, abc), (101, f(a)), (aaa, X).

bb_remove(blackboard, aaa). Succeeds. 'blackboard' contains now the pairs (100, abc), (101, f(a)).
bb_remove(blackboard, abc). Succeeds. 'blackboard' still contains the pairs (100, abc), (101, f(a)).

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.


Darueber read on...