mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-05 22:38:44 +00:00
Added isEmptySet/isEmptyMap
This commit is contained in:
parent
8359b674f8
commit
849162aa92
4 changed files with 13 additions and 1 deletions
|
|
@ -196,6 +196,8 @@ Maps are immutable structures with the following interface:
|
|||
\descr{\lstinline|fun emptyMap (f)|}{Creates an empty map. An argument is a comparison function, which returns zero, positive or negative integer values depending on
|
||||
the order of its arguments.}
|
||||
|
||||
\descr{\lstinline|fun isEmptyMap (m)|}{Returns true if an argument map is empty.}
|
||||
|
||||
\descr{\lstinline|fun compareOf (m)|}{Returns a comparison function, associated with the map given as an argument.}
|
||||
|
||||
\descr{\lstinline|fun addMap (m, k, v)|}{Adds a binding of a key "\lstinline|k|" to a value "\lstinline|v|" into a map "\lstinline|m|". As a result, a new map is
|
||||
|
|
@ -226,6 +228,8 @@ Sets are immutable structures with the following interface:
|
|||
\descr{\lstinline|fun emptySet (f)|}{Creates an empty set. An argument is a comparison function, which returns zero, positive or negative integer values depending on
|
||||
the order of its arguments.}
|
||||
|
||||
\descr{\lstinline|fun isEmptySet (m)|}{Returns true if an argument set is empty.}
|
||||
|
||||
\descr{\lstinline|fun compareOf (m)|}{Returns a comparison function, associated with the set given as an argument.}
|
||||
|
||||
\descr{\lstinline|fun addSet (s, v)|}{Adds an element "\lstinline|v|" into a set "\lstinline|s|" and returns a new set.}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue