Rechercher une page de manuel
Array.elem.3kaya
Langue: en
Version: March 2009 (fedora - 05/07/09)
Section: 3 (Bibliothèques de fonctions)
NAME
Array::elem - Check whether a value is in a list.SYNOPSIS
Bool elem( a val, [a] list, Bool(a, a) eq=equal )ARGUMENTS
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)
DESCRIPTION
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)
AUTHORS
Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/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.RELATED
Array.any(3kaya)
Builtins.equal(3kaya)
Builtins.identical(3kaya)
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre