list::length/1->
length : (Elem* List)
-> positive Length.
Returns the length of the list List.
when i input list::length(string* ,List), it's wrong ,how to use it ,
- Tonton Luc
- VIP Member
- Posts: 204
- Joined: 16 Oct 2001 23:01
Hi,
One sample :
One sample :
Code: Select all
My_list = ["a","b","c"],
Nb = list::length(My_list),
stdio::writef("My_list contain % element(s).",Nb).
Read the following post to know more about List,
http://wiki.visual-prolog.com/index.php ... _Recursion
http://wiki.visual-prolog.com/index.php ... _Recursion