about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/catalogue.lil16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/catalogue.lil b/src/catalogue.lil
index f1869f9..52d1e60 100644
--- a/src/catalogue.lil
+++ b/src/catalogue.lil
@@ -50,3 +50,19 @@ newtable:readcsv[data "sissss"] # this column spec. syntax looks hilarious
 show[newtable]
 # HUGE SUCCESS!
 
+# Not sure how to programmatically access/view the implicit ID column...or if that is wise?
+# in lieu of using the implicit IDs when referencing a row, I think maybe I'll come up with 
+# my own ID and use that instead...a well known ID?
+
+on entry d t do
+	t:insert entry_type:(d.entry_type) title:(d.title) into t
+end
+
+# where d is a table representing a new row to be added to t, an existing table
+
+row.entry_type:"note"
+row.title:"in which we test adding a row with a function"
+row:table row
+test:entry[row catalogue]
+
+show[test] # NOTE, keep in mind that this generates a totally new table