Returns a value of True if the named function fun returns a value of True for every argument supplied in the list .
every? ( fun As Name, list As List ) As Boolean
Argument | Type | Description |
---|---|---|
fun | Name | The name of the function to apply. The function must return a boolean . |
list | List | List of arguments to which the 'fun' will be applied. |
Intent >every?(:empty?, {{},{},{}}) --> TrueThe function empty?() returns true if its argument (a list ) is empty. Here, we apply it against 3 lists , all empty in this example.
Intent >every?(:empty?, {{},{1},{}}) --> FalseHere, it is applied against 3 lists, two empty but an entry in a third list .