We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b8a182 commit d5d9eedCopy full SHA for d5d9eed
2 files changed
langs/outlaw/compile.rkt
@@ -75,7 +75,7 @@
75
list->string string->list
76
char<=? char=?
77
remove-duplicates remq* remove* remove
78
- andmap vector list->vector boolean?
+ andmap ormap vector list->vector boolean?
79
substring odd?
80
system-type ;; hard-coded
81
not findf
langs/outlaw/stdlib.rkt
@@ -7,7 +7,7 @@
7
8
reverse
9
10
- andmap vector list->vector boolean? substring
+ andmap ormap vector list->vector boolean? substring
11
odd?
12
system-type
13
not
@@ -280,6 +280,13 @@
280
(and (f x)
281
(andmap f xs))]))
282
283
+(define (ormap f xs)
284
+ (match xs
285
+ ['() #f]
286
+ [(cons x xs)
287
+ (or (f x)
288
+ (ormap f xs))]))
289
+
290
(define (list->vector xs)
291
(list->vector/a (make-vector (length xs) 0) 0 xs))
292
0 commit comments