www.delorie.com/gnu/docs/guile/guile_463.html   search  
 
Buy GNU books!


Guile Reference Manual

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

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.

Scheme Procedure: string-any pred s [start end]
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.

Scheme Procedure: string-every pred s [start end]
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.


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003