.\" This man page is automatically generated using .\" kayadoc2man from the Kaya development tools and the -xmldocs compile .\" option. Editing it directly is not encouraged. .\" It is under the same license as the source .k file that it was .\" generated from. .TH "Set.newSet" "3kaya" "August 2014" "Kaya" "Kaya module reference" .SH "NAME" Set::newSet \- Create a new empty set. .SH "SYNOPSIS" .B Set newSet( \fIInt(a, a) cmp=compare\fP .B ")" .SH "ARGUMENTS" .PP .B "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 \fBInt icmp(Int a, Int b) = a-b; \fP could be used. This argument may be omitted and defaults to .B "Builtins.compare"(3kaya) .SH "DESCRIPTION" .PP Create a new empty set. .SH "AUTHORS" Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/ .SH 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. .SH "RELATED" .PD 0 .PP .B "Set.Set"(3kaya) .PP .B "Set.add_1"(3kaya) .PP .B "Set.array_1"(3kaya) .PP .B "Set.delete_1"(3kaya) .PP .B "Set.elem_1"(3kaya) .PP .B "Set.empty_1"(3kaya) .PD 0.4v