about summary refs log tree commit diff stats
path: root/shell/primitives.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-06-20 22:24:03 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-06-20 22:32:03 -0700
commitfa26249931c1cf71edd78cb1c030b501783ae027 (patch)
treeed30c752583c5285a38d1dcf30fe89cca24ecc9c /shell/primitives.mu
parentecc763f092456b4d8c93a3d7f47163e4a32fa7b0 (diff)
downloadmu-fa26249931c1cf71edd78cb1c030b501783ae027.tar.gz
new macro: with
Diffstat (limited to 'shell/primitives.mu')
-rw-r--r--shell/primitives.mu3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/primitives.mu b/shell/primitives.mu
index 3ea943a5..1b25583c 100644
--- a/shell/primitives.mu
+++ b/shell/primitives.mu
@@ -14,6 +14,7 @@ fn initialize-primitives _self: (addr global-table) {
   append-primitive self, "<="
   append-primitive self, ">="
   # generic
+  append-primitive self, "apply"
   append-primitive self, "="
   append-primitive self, "no"
   append-primitive self, "not"
@@ -104,7 +105,7 @@ fn render-primitives screen: (addr screen), xmin: int, xmax: int, ymax: int {
   tmpx <- draw-text-rightward screen, ": stream grapheme -> stream", tmpx, xmax, y, 7/fg=grey, 0xdc/bg=green-bg
   y <- increment
   var tmpx/eax: int <- copy xmin
-  tmpx <- draw-text-rightward screen, "fn set if while cons car cdr no not and or = ", tmpx, xmax, y, 0x2a/fg=orange, 0xdc/bg=green-bg
+  tmpx <- draw-text-rightward screen, "fn apply set if while cons car cdr no not and or = ", tmpx, xmax, y, 0x2a/fg=orange, 0xdc/bg=green-bg
   # numbers
   tmpx <- draw-text-rightward screen, "< > <= >= + - * / % sqrt abs sgn", tmpx, xmax, y, 0x2a/fg=orange, 0xdc/bg=green-bg
 }