.\" 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 "Array.elem" "3kaya" "August 2014" "Kaya" "Kaya module reference" .SH "NAME" Array::elem \- Check whether a value is in a list. .SH "SYNOPSIS" .B Bool elem( \fIa val, [a] list, Bool(a, a) eq=equal\fP .B ")" .SH "ARGUMENTS" .PP .B "val" The value to search for ("needle") .PP .B "list" The list to search ("haystack") .PP .B "eq" Optionally, the function used to check for presence (the default is .B "Builtins.equal"(3kaya) , obviously, but .B "Builtins.identical"(3kaya) might be used) .SH "DESCRIPTION" .PP Check whether the "needle" occurs at least once in the "haystack". This function can be thought of as a specialised version of .B "Array.any"(3kaya) .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 "Array.any"(3kaya) .PP .B "Builtins.equal"(3kaya) .PP .B "Builtins.identical"(3kaya) .PD 0.4v