Map of Numberings
Jump to navigation
Jump to search
Return to: Chialisp
Because atoms have no type information, the meaning of an atom is determined when a function is applied to it. For example, sometimes an atom that was read in as a string is treated as an integer.
Below is an incomplete cross reference for when Chialisp returns unexpected results while compiling or running.
Chialisp Numberings Table
String | Integer | Example Code | Example Code Output |
---|---|---|---|
q | 1 | brun '(+ (q . "helo") (q . q))'
|
help |
a | 2 | brun '(r 1)' '(r 2)'
|
a |
i | 3 | brun '(r 1)' '(r 3)'
|
i |
c | 4 | brun '(r 1)' '(r 4)'
|
c |
f | 5 | ||
r | 6 | ||
l | 7 | ||
x | 8 | ||
= | 9 | ||
<s | 10 | brun '(a (q 2 2 (c 2 (c 5 (c 11 (c 23 ()))))) (c (q 16 (q . 1000) (2 5 11 23)) 1))' '(10 20 30)'
|
FAIL: apply requires exactly 2 parameters (>s 20 30)
|
sha256 | 11 | brun '2' '(sha256)'
|
11 |
substr | 12 | ||
strlen | 13 | ||
concat | 14 | brun '2' '(concat (q 1d58c1e7fc6334d3630796d1e12e80ccbcd970ba7254e7242a57e9762cdf285f 7a1c65d48c6034d4185ffb2ffa50c366216950c922bc2eacf62abe57e4366078 2))'
|
14 |
NA | 15 | NA | NA |
+ | 16 | brun '(c (q 16 5 11 23) 1)'
|
((+ 5 11 23)) |
- | 17 | ||
* | 18 | ||
/ | 19 | ||
divmod | 20 |
Useful Links: