summaryrefslogtreecommitdiff
path: root/Alpha
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2020-05-10 20:04:48 -0700
committerBen Sima <ben@bsima.me>2020-05-10 20:04:48 -0700
commit57952327433f34324da6db9789fb7c1ed5204b5f (patch)
tree048ce35017c5e900dc2c98b3daeedae0b7334930 /Alpha
parentd4db97edda778fbf77cedc89f62184f412f18edf (diff)
web server is working
Diffstat (limited to 'Alpha')
-rw-r--r--Alpha/Core.scm12
1 files changed, 10 insertions, 2 deletions
diff --git a/Alpha/Core.scm b/Alpha/Core.scm
index 192a74f..db5975b 100644
--- a/Alpha/Core.scm
+++ b/Alpha/Core.scm
@@ -6,7 +6,7 @@
#:export (fmt printf pr prn rest last butlast
true? false? some? empty?
-> ->> fn /. curry comp
- repeat
+ repeat for seq
inc dec member? contains?
comment get-source* get-source source))
@@ -49,7 +49,7 @@
(eq? #t x))
(define (some? a)
- (not (nil? a)))
+ (not (null? a)))
(define (empty? a)
(equal? a '()))
@@ -205,3 +205,11 @@
(define (contains? ls x)
(member? x ls))
+
+(define (for ls f)
+ (map f ls))
+
+(define (seq x)
+ (if (list? x)
+ x
+ (list x)))