Collects all elements of a term vector in a list....
Move to
=> <=
Darueber Spitze
See also
tv_add/2
tv_create/1
tv_get/3
tv_list/2
tv_set/3
tv_setsize/2
tv_size/2
IF Computer > MINERVA > Manual > Reference > Predicates > Term vector > tv_list/2

tv_list/2

Collects all elements of a term vector in a list.

tv_list(+Vector, ?List)

tv_list/2 collects all elements (from 1st to last index) of the term vector Vector in a list and unifies the resulting list with List.

Arguments

Vector                  object (term vector)
Term                    term

Examples

    tv_create(V),
    ( for(1,I,4),
        SquareI is I*I,
        tv_add(V, I*I = SquareI),
        fail
    ;   tv_list(V, Squares)
    )
->
    Squares = [1 * 1 = 1,2 * 2 = 4,3 * 3 = 9,4 * 4 = 16]

Standard

This predicate is not part of the ISO-Prolog Standard.

See also

tv_create/1, tv_add/2, tv_size/2, tv_setsize/2, tv_set/3, tv_get/3, tv_list/2.

read on...
MINERVA
ifcomputer logo
f
Expert Services on the Web
Sprache
English
Japanese
Server
USA
Japan
Site Access
Local Index
Local Contents
Site Contents
Site Index
Printer Friendly
For imode
For PDA
Search
document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/termvector/tv_list/home_de.html
published 2008/11/17 update 2002/3/19 (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
scroll to top managed with ubiCMS