forall
forall(s_formalVar l_valueList g_predicateExpr) =>t/nilforall(s_key o_table g_predicateExpr) =>t/nil
Description
Checks if g_predicateExpr evaluates to non-nil for every element in l_valueList. This is a syntax form.
Verifies that an expression remains true for every element in a list. The forall function can also be used to verify that an expression remains true for every key/value pair in an association table. The syntax for association table processing is provided in the second syntax statement.
Arguments
|
List of elements that are bound to s_formalVar one at a time. |
|
|
A SKILL expression that usually uses the value of s_formalVar. |
|
Value Returned
Examples
Returns t if each key and its value in the association table are of the type string.
forall( x '(1 2 3 4) (x > 0) )
=> t
forall( x '(1 2 3 4) (x < 4) )
=> nil
forall(key myTable (and (stringp key)(stringp myTable[key])))
=> t
Related Topics
Return to top