about summary refs log tree commit diff stats
path: root/advent.tlv
diff options
context:
space:
mode:
Diffstat (limited to 'advent.tlv')
-rw-r--r--advent.tlv13
1 files changed, 13 insertions, 0 deletions
diff --git a/advent.tlv b/advent.tlv
index a1652ac..afbff19 100644
--- a/advent.tlv
+++ b/advent.tlv
@@ -133,6 +133,19 @@ end
   {
     __teliva_timestamp = [==[
 original]==],
+    split = [==[
+function split(s, d)
+  result = {}
+  for match in (s..d):gmatch("(.-)"..d) do
+    table.insert(result, match);
+  end
+  return result
+end
+]==],
+  },
+  {
+    __teliva_timestamp = [==[
+original]==],
     window = [==[
 window = curses.stdscr()]==],
   },