about summary refs log tree commit diff stats
path: root/linux/401test.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-06-11 21:36:12 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-06-11 21:36:12 -0700
commit0dc4f9c62bf26b373284e7d27aa41c500c8bd16a (patch)
tree4119cdfd28b77cb2b15e6b3173a5c899db8801c2 /linux/401test.mu
parent31918612428c82652934be7b2e3ffc347e19ff2c (diff)
downloadmu-0dc4f9c62bf26b373284e7d27aa41c500c8bd16a.tar.gz
hacky bugfix: support floats in nth
Needed because we don't yet have a primitive in the shell to truncate/round
non-integers to integers.

Before:
  (nth (/ 31 10)    # we don't have float literals yet
       '(1 2 3 4))
  => NULL

..with an unpleasant abort likely later on.

Really the correct thing to do is ensure none of my primitives ever returns
NULL. Start with car/cdr.
Diffstat (limited to 'linux/401test.mu')
0 files changed, 0 insertions, 0 deletions
a> 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145