site/util.moon

6 lines
135 B
Plaintext
Raw Normal View History

2015-02-13 20:42:42 +00:00
split = (s, delimiter) ->
result = {}
for match in (s..delimiter)\gmatch "(.-)"..delimiter
table.insert result, match
result