
Why speak nonsense when you can test it?
// ----------------------------------------------------------------------------
module nonsense
import StdEnv
nonsense = map ((^) 2)
Start = nonsense [1,2,3]
// ----------------------------------------------------------------------------
.... Running gives:
[2,4,8]
Best wishes
Stephen
2009/11/8 L Spice
John van Groningen
writes: One of this differences between Haskell and Clean I did not see mentioned in
Doaitse Swierstra wrote: this discussion is that Clean does not allow so-called partial parametrisation. I.e. all function calls have to be fully saturated
I don't understand what you mean. Can you give an example ?
Kind regards,
John van Groningen
I think the idea was that Clean doesn't support a syntax like "map (**2)" for a function that will take a list and square its elements. The call to map there is not fully saturated, since it's waiting for another argument.
(As a disclaimer, I've not used Clean, so I could be speaking nonsense; it's just how I read the original statement.)
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe