From 3a556296b68ded68c9fcefa1c60e34d1eff40fa7 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 4 Sep 2024 21:22:03 -0400 Subject: Add Text:repeat() --- environment.c | 1 + 1 file changed, 1 insertion(+) (limited to 'environment.c') diff --git a/environment.c b/environment.c index 2c1a3f70..21cd04f7 100644 --- a/environment.c +++ b/environment.c @@ -259,6 +259,7 @@ env_t *new_compilation_unit(CORD *libname) {"map", "Text$map", "func(text:Text, pattern:Pattern, fn:func(text:Text)->Text)->Text"}, {"matches", "Text$matches", "func(text:Text, pattern:Pattern)->Bool"}, {"quoted", "Text$quoted", "func(text:Text, color=no)->Text"}, + {"repeat", "Text$repeat", "func(text:Text, count:Int)->Text"}, {"replace", "Text$replace", "func(text:Text, pattern:Pattern, replacement:Text, backref=$/\\/, recursive=yes)->Text"}, {"replace_all", "Text$replace_all", "func(text:Text, replacements:{Pattern:Text}, backref=$/\\/, recursive=yes)->Text"}, {"split", "Text$split", "func(text:Text, pattern=$Pattern'')->[Text]"}, -- cgit v1.2.3