[Haskell-beginners] Possible to update Haskell syntax

Michael Snoyman michael at snoyman.com
Wed Nov 26 10:39:22 EST 2008

On Tue, Nov 25, 2008 at 9:09 PM, cm <cm at raytheon.com> wrote:

> I would just like as simple an input syntax as possible (minimum of
> punctuation) for interactive use, for both lists and tuples.  For instance,
> if all entries in a list or tuple are numbers, then I think eliminating the
> commas would be convenient and look nicer.
> As a use case, one might have
>  " permute (2 3 4) [7 9 11 0 1 5]", which would be a function which
> cyclically permutes elements 2 3 4 of a list.

You might be interested in this article I saw on variadic functions in
Haskell: http://okmij.org/ftp/Haskell/vararg-fn.lhs. The first example shows
how you could create a build function to create a list.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20081126/ed64a00b/attachment.htm

More information about the Beginners mailing list