[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [proposal] table.gsub/table.gmatch/table.find/etc
- From: "Soni \"They/Them\" L." <fakedme@...>
- Date: Mon, 12 Aug 2019 09:03:55 -0300
How hard would it be to convert the existing string matching features
for use with tables?
E.g.
table.find({"hello", "world"}, {"world"}, 1, true) --> 2
table.match({"hello", "cruel", "world"}, {table.caret, table.percent.b,
"hello", "world", table.dollar}) --> {"hello", "cruel", "world"}
table.gsub({"a", "world"}, {table.percent.A}, {"bad", "place"}) -->
{"a", "bad", "place"}, 1