[Haskell-beginners] Non-recursive binding expression

j.romildo at gmail.com j.romildo at gmail.com
Sat Feb 28 06:27:45 EST 2009


Is there any non-recursive binding expression in Haskell?

Something that would allow me to write, for instance,

  test = let' xs = [] in
         let' xs = 3 : xs in
         let' xs = 8 : xs in
         let' xs = 7 : xs in

Here let' is an hypothetical construction similar to let, except that it
would be non-recursive. In the example, the value of test would be

So, is there something in this line in Haskell?


José Romildo

More information about the Beginners mailing list