News for hackers. Stuff that matters.
Re:When is a recursive function not a recursive function? by tome on Monday October 06, 2014 @03:44AM (#8414730)
It works in OCaml too, where lists certainly are not functions!

    let rec ones = 1 :: ones;;
Re:When is a recursive function not a recursive function? by poizan42 on Monday October 06, 2014 @04:56AM (#8414884)
I don't know OCaml, but logically it cannot be an actual realized list as the would take up an infinite amount of memory. Whether or not it acts like a function in the language wasn't really the point - internally it must still be an iterator unless you have a computer with an infinite amount of memory.
Re:When is a recursive function not a recursive function? by tome on Monday October 06, 2014 @08:41AM (#8415547)
It's not a function, an infinite list or an iterator. It's a cyclic linked list.