1Array.elem(3kaya)            Kaya module reference           Array.elem(3kaya)
2
3
4

NAME

6       Array::elem - Check whether a value is in a list.
7

SYNOPSIS

9       Bool elem( a val, [a] list, Bool(a, a) eq=equal )
10

ARGUMENTS

12       val The value to search for ("needle")
13
14       list The list to search ("haystack")
15
16       eq  Optionally, the function used to check for presence (the default is
17       Builtins.equal (3kaya)  ,  obviously,  but  Builtins.identical  (3kaya)
18       might be used)
19

DESCRIPTION

21       Check whether the "needle" occurs at least once in the "haystack". This
22       function can be thought  of  as  a  specialised  version  of  Array.any
23       (3kaya)
24

AUTHORS

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

LICENSE

30       The Kaya standard library is free software;  you  can  redistribute  it
31       and/or  modify  it  under  the  terms  of the GNU Lesser General Public
32       License (version 2.1 or any later version) as  published  by  the  Free
33       Software Foundation.
34
36       Array.any (3kaya)
37       Builtins.equal (3kaya)
38       Builtins.identical (3kaya)
39
40
41
42Kaya                             December 2010               Array.elem(3kaya)
Impressum