[prev in list] [next in list] [prev in thread] [next in thread]
List: lua-l
Subject: [proposal] table.gsub/table.gmatch/table.find/etc
From: "Soni \"They/Them\" L." <fakedme () gmail ! com>
Date: 2019-08-12 12:03:55
Message-ID: efccfb68-3199-8b01-157e-acc9505d0bdd () gmail ! com
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic