Finished implementing real Damas-Hindley-Milner type system with let polymorphism!
This commit is contained in:
@@ -64,6 +64,9 @@
|
||||
(if (f i (idx l i)) (recurse f l (concat n (array (idx l i))) (+ i 1))
|
||||
(recurse f l n (+ i 1))))))
|
||||
(helper f l (array) 0)))
|
||||
filter (lambda (f l) (filter_i (lambda (x i) (f x)) l))
|
||||
|
||||
not (lambda (x) (if x false true))
|
||||
|
||||
|
||||
; Huge thanks to Oleg Kiselyov for his fantastic website
|
||||
@@ -190,6 +193,9 @@
|
||||
map_i
|
||||
flat_map
|
||||
flat_map_i
|
||||
filter_i
|
||||
filter
|
||||
not
|
||||
lapply
|
||||
vapply
|
||||
Y
|
||||
|
||||
Reference in New Issue
Block a user