Register / Login
Need help with basics of ML
posted 2 years ago
I need to first generate an infinite list containing fibonacci sequence.
This is what i did.
-datatype 'a inflist = NIL |CONS of 'a * (unit -> 'a inflist); -fun fib a b=CONS(a, fn() => fib b (a+b)); val fib=fn : int-> int -> int inflist
Now i need to create an infinite list that has the entire fibonacci sequence.
And i am not able to understand how to do that.
Online Java Editor/Compiler?
What does recursion code hurt ?
Java Assignment Problem