diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-03 13:45:30 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-03 13:45:30 -0500 |
| commit | f330f06c218a0903530cdc51c0fac245cb51ae75 (patch) | |
| tree | 7e4220790a846cbd05190149edd3a61ce795b752 /stdlib/patterns.h | |
| parent | 80475ad02d6b20d6c667c3be8bc939a83632bd3f (diff) | |
Add `recursive` argument to text:each() and text:map(), plus update docs
Diffstat (limited to 'stdlib/patterns.h')
| -rw-r--r-- | stdlib/patterns.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/patterns.h b/stdlib/patterns.h index 494c8338..53db0978 100644 --- a/stdlib/patterns.h +++ b/stdlib/patterns.h @@ -34,8 +34,8 @@ Array_t Text$find_all(Text_t text, Pattern_t pattern); Closure_t Text$by_match(Text_t text, Pattern_t pattern); PUREFUNC bool Text$has(Text_t text, Pattern_t pattern); OptionalArray_t Text$matches(Text_t text, Pattern_t pattern); -Text_t Text$map(Text_t text, Pattern_t pattern, Closure_t fn); -void Text$each(Text_t text, Pattern_t pattern, Closure_t fn); +Text_t Text$map(Text_t text, Pattern_t pattern, Closure_t fn, bool recursive); +void Text$each(Text_t text, Pattern_t pattern, Closure_t fn, bool recursive); #define Pattern$hash Text$hash #define Pattern$compare Text$compare |
