Retrieves the current size of a term vector....
Move to
Next Prev
Up Top
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_size/2

tv_size/2

Retrieves the current size of a term vector.

tv_size(+Vector, ?Size)

tv_size/2 unifies Size with the size of the term vector Vector.

Arguments

Vector                  object (term vector)
Size                    var or integer

Examples

    tv_create(V),
    tv_size(V, InitialSize),
    tv_add(V, one),
    tv_add(V, two),
    tv_size(V, FinalSize).
->
    InitialSize = 0
    FinalSize = 2

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
Language
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_size/home_en.html
published 2008/7/7 update 2002/3/19 (c) 1996-2006 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 info@ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
scroll to top managed with ubiCMS