SYNOPSISBool elem( a val, [a] list, Bool(a, a) eq=equal )
val The value to search for ("needle")
list The list to search ("haystack")
eq Optionally, the function used to check for presence (the default is Builtins.equal(3kaya) , obviously, but Builtins.identical(3kaya) might be used)
Check whether the "needle" occurs at least once in the "haystack". This function can be thought of as a specialised version of Array.any(3kaya)
AUTHORSKaya standard library by Edwin Brady, Chris Morris and others ([email protected]). For further information see http://kayalang.org/
LICENSEThe 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.