6.2.901.900
match-string
source code: https://github.com/AlexKnauth/match-string
(require match-string) | package: match-string |
provides string-append, append, and string as match expanders,
and string-append/c, append/c, and string/c as contract constructers.
syntax
(string-append pat ...)
(string-append expr ...) string-append
pat = match-pattern | pat ooo ooo = ... | ...+ | ..k
a match expander for matching strings.
When it’s not used as a match expander, it behaves like normal rkt:string-append.
Examples: | |||||||||||||||||||||||
|
a match expander for matching lists.
When it’s not used as a match expander, it behaves like normal rkt:append.
Examples: | ||||||||||||||||||||||||||
|
syntax
(string pat ...)
(string expr ...) string
pat = match-pattern | match-pattern ooo ooo = ... | ..k
a match expander for matching string character by character.
Whet it’s used as a match expander, it expands to (app string->list (list pat ...)).
When it’s not used as a match expander, it behaves like normal rkt:string.
procedure
(string-append/c arg ...) → flat-contract?
arg : (or/c flat-contract? '... '...+ ..k?)
procedure
(append/c arg ...) → flat-contract?
arg : (or/c flat-contract? '... '...+ ..k?)
procedure
(string/c arg ...) → flat-contract?
arg : (or/c flat-contract? '... '...+ ..k?)