History

add square to prelude

Sigrid Haflínudóttir committed 6 years ago

Commit 7e7bad91 parent 4a6ea9a2 files · +2 −0Browse files

Unified · Split

2 files
  1. README.md +1 −0
  2. aa.c +1 −0
README.md+1−0
@@ -43,6 +43,7 @@ newline · 42 unmodified lines
4343 not
4444 or
4545 quote
46+square
4647 while
4748 ```
4849
aa.c+1−0
@@ -130,6 +130,7 @@ static aaObject rparen; · 129 unmodified lines
130130
131131 static char prelude[] = "\
132132 (define newline (lambda () (display \"\\n\")))\
133+(define square (lambda (x) (* x x)))\
133134 ";
134135
135136 static aaObject *eval(aaContext *ctx, aaObject *obj, aaObject *env, aaObject **bind);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t