Retrieve all keys of a blackboard.
bb_keys/2 retrieves all keys from the key/value tuples in the blackboard Board and stores them in a newly created term vector. Vector will be unified with the resulting term vector. The order in which the elements are stored in the term vector is not defined.
Board blackboard Vector variable
bb_create(Board),
bb_put(Board, one, 1),
bb_put(Board, two, 2),
bb_put(Board, three, 3),
bb_keys(Board, Vector),
tv_list(Vector, L)
->
L = [two, one, three]
This predicate is not part of the ISO-Prolog Standard.
| scroll to top |
|