
26 Nov
2008
26 Nov
'08
10:39 a.m.
On Tue, Nov 25, 2008 at 9:09 PM, cm
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. Michael