Anonymous user
Collections: Difference between revisions
m
→{{header|Ursala}}
Line 896:
=={{header|Ursala}}==
There are several kinds of
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
The examples shown below populate the
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===
|