1Set.newSet(3kaya)            Kaya module reference           Set.newSet(3kaya)
2
3
4

NAME

6       Set::newSet - Create a new empty set.
7

SYNOPSIS

9       Set<a> newSet( Int(a, a) cmp=compare )
10

ARGUMENTS

12       cmp  The  comparison  function  to  use  for ordering. It must take two
13       parameters, returning a negative  number  if  the  first  parameter  is
14       smaller  (whatever  'smaller' means in this context), positive if it is
15       bigger, and zero if the two parameters are equal. For Ints,  for  exam‐
16       ple,  the  function  Int  icmp(Int a, Int b) = a-b; could be used. This
17       argument may be omitted and defaults to Builtins.compare (3kaya)
18
19

DESCRIPTION

21       Create a new empty set.
22

AUTHORS

24       Kaya  standard  library  by  Edwin  Brady,  Chris  Morris  and   others
25       (kaya@kayalang.org). For further information see http://kayalang.org/
26

LICENSE

28       The  Kaya  standard  library  is free software; you can redistribute it
29       and/or modify it under the terms  of  the  GNU  Lesser  General  Public
30       License  (version  2.1  or  any later version) as published by the Free
31       Software Foundation.
32
34       Set.Set (3kaya)
35       Set.add_1 (3kaya)
36       Set.array_1 (3kaya)
37       Set.delete_1 (3kaya)
38       Set.elem_1 (3kaya)
39       Set.empty_1 (3kaya)
40
41
42
43Kaya                             December 2010               Set.newSet(3kaya)
Impressum