IF Computer > MINERVA > Manual > Reference > Predicates > Blackboards > bb_elements/2

bb_elements/2

MINERVA
ifcomputer logo
f
Expert Services on the Web

Retrieve all elements of a blackboard.

bb_elements(+Board, -Vector)

bb_elements/2 retrieves all values 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.

Arguments

Board              blackboard
Vector             variable

Examples

    bb_create(Board),
    bb_put(Board, one, 1),
    bb_put(Board, two, 2),
    bb_put(Board, three, 3),
    bb_elements(Board, Vector),
    tv_list(Vector, L)
->
    L = [3, 1, 2]

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.

document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/blackboard/bb_elements/print_en.html
published 2008/9/1 update 2001/2/7 (c) 1996-2006 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 start (AT) ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
Back> managed with ubiCMS