Collections: Difference between revisions

m
Line 896:
=={{header|Ursala}}==
 
There are several kinds of containerscollections in Ursala that are supported by
having their own operators and type constructors associated with
them. All storage is immutable, but one may "add" to a collection
by invoking a function that derivesreturns a new collection from it.
The examples shown below populate the containerscollections with primitive
types expressed literally, but they could also be aggregate
or abstract types, functions, symbolic names or expressions.
Line 913:
z = 3:<6,8>
</lang>
This function takes a pair of a new head and an existing list,
 
and returns one that has the new head "added" to it.
<lang Ursala>
foo ("newhead","existing-list") = "newhead":"existing-list"
</lang>
===Sets===
 
Anonymous user