def digits
import ezmcp@0.1.0.0/src/openapi.bend as Openapiimport Base
1301# whether every character is a digit
1302def digits(text: String) -> Bool:
1303 match text:
1304 case SNil{}:
1305 True{}
1306 case SCon{ch, rest}:
1307 and.then(Char.is_digit(ch), _u => digits(rest))