-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Currently the language supports recursion as a first-class construct using the fix form.
It might be fun to try to add corecursion as well so that something like the corecursive definition of Fibonacci can be given.
metaFibs x y = x :: metaFibs y (x + y)
fibs = metaFibs 0 1Possible concrete syntax :
(defcorec (meta-fibs x y)
(cons x (meta-fibs y (+ x y))))
(defval fibs (meta-fibs 0 1))Metadata
Metadata
Assignees
Labels
No labels