lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Fri, Nov 26, 2010 at 20:10, Mark Hamburg <mark@grubmah.com> wrote:
>        \[ x | x > 3 ] -- Unambiguous since \ has no meaning right now
>        ^[ x | x > 3 ] -- I haven't checked for ambiguities here

You can use any two character combination beside `..`, `==`, `=>`,
`=<` and `~=`.

       stream
               :map( $ * $ )
               :filter( $ % 2 == 0 )

This is very terse and readable, but also the most restrictive
proposition so far (only one argument, and no statements). You could
extend it with $1 * $2...

Let's throw some more at the wall, hopefully one of them will finally stick.

^[ x,y => x*y ] -- and
^[ x,y | statements => explist ]

or

[: x,y => blah :] -- and
[: x,y : statements => b,l,o,b :]

-- Pierre-Yves