every?()

Synopsis

Returns a value of True if the named function fun returns a value of True for every argument supplied in the list .

Syntax

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.

Example 1

Intent >every?(:empty?, {{},{},{}}) 
--> True 
The function empty?() returns true if its argument (a list ) is empty. Here, we apply it against 3 lists , all empty in this example.

Example 2

Intent >every?(:empty?, {{},{1},{}}) 
--> False 
Here, it is applied against 3 lists, two empty but an entry in a third list .