chickadee » getopt-utils » string->/?

(string->/? TRAN PRED) -> (string -> (or false *))syntax

Returns a procedure returning the transformed & tested value from an input string. Cannot be used when #f is valid for the domain.

TRAN
(string -> 'a) ; transformer
PRED
('a -> boolean) ; predicate
(string->/? string->number (conjoin integer (cut <= 1 <> 32)))