[ ; ]
:length
operator returns the number of elements in the list.contains
operator returns true if and only if an element is in the list.nth
operator retrieves the element at index n starting from 0:for do done
loop syntax:prepend
.int
nat
string
bytes
tez
bool
key_hash
date
duration
and address
.[ ; ]
:contains
operator returns true if an element is an element of the set, false otherwise.add
operator returns a set with an extra element if the element is not already in the argument set. It returns the same set if the element is already in the set. remove
operator returns a set with an element removed if the element was present in the argument set . It returns the same set if the element is not in the set.length
operator returns the number of elements in the set.int
nat
string
bytes
tez
bool
key_hash
date
duration
and address
. Values may be any type, except assets.[ ( , ) ; ]
:put
operator returns a map with a new pair (key,value) if the key is not associated in the argument map. It returns the same map otherwise.remove
operator returns a map that does not pair the argument key.[ ]
operator returns an option of the value associated to the argument key.contains
operator returns true if the map associates a value to the argument key, false otherwise.length
operator returns the number of pairs in the map.