Node:SRFI-13 Predicates, Next:, Previous:Loading SRFI-13, Up:SRFI-13



39.11.2 Predicates

In addition to the primitives string? and string-null?, which are already in the Guile core, the string predicates string-any and string-every are defined by SRFI-13.

string-any pred s [start end] Scheme Procedure
Check if the predicate pred is true for any character in the string s, proceeding from left (index start) to right (index end). If string-any returns true, the returned true value is the one produced by the first successful application of pred.

string-every pred s [start end] Scheme Procedure
Check if the predicate pred is true for every character in the string s, proceeding from left (index start) to right (index end). If string-every returns true, the returned true value is the one produced by the final application of pred to the last character of s.