イフコンピュータ > MINERVA > マニュアル > レファレンス > 述語 > 黒板 > bb_keys/2

bb_keys/2

MINERVA
ifcomputer logo
f
Expert Services on the Web

黒板の全てのキーを読み出します。

bb_keys(+Board, -Vector)

bb_keys/2は、黒板Boardにおけるキー/値組から全てのキーを読み出して、新しくつくられた項ベクトルの中で、それらを保存します。 Vectorは、結果として生じる項ベクトルで単一化されます。 要素が項ベクトルの中で保存される順序は、定義されません。

引き数

Board              黒板
Vector             変数

例題

    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]

標準

この述語は、ISO-Prolog 標準の要件ではありません。

以下も参照して下さい

項ベクトル. 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_keys/print_jp.html
published 2008/11/17 update 2001/2/7 (c) 1996-2006 IF Computer Japan
IF Computer 〒113-0022 Tel 03-5814-3352 start (AT) ifcomputer.com
Customer Support 東京都文京区千駄木5-28-2   http://www.ifcomputer.co.jp
戻る> managed with ubiCMS