NAME¶
Set::newSet - Create a new empty set.
SYNOPSIS¶
Set<a> newSet( Int(a, a) cmp=compare )
ARGUMENTS¶
cmp The comparison function to use for ordering. It must take two
parameters, returning a negative number if the first parameter is smaller
(whatever 'smaller' means in this context), positive if it is bigger, and zero
if the two parameters are equal. For Ints, for example, the function
Int
icmp(Int a, Int b) = a-b; could be used. This argument may be omitted and
defaults to
Builtins.compare (3kaya)
DESCRIPTION¶
Create a new empty set.
AUTHORS¶
Kaya standard library by Edwin Brady, Chris Morris and others
(kaya@kayalang.org). For further information see
http://kayalang.org/
LICENSE¶
The Kaya standard library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License (version
2.1 or any later version) as published by the Free Software Foundation.
Set.Set (3kaya)
Set.add_1 (3kaya)
Set.array_1 (3kaya)
Set.delete_1 (3kaya)
Set.elem_1 (3kaya)
Set.empty_1 (3kaya)