curly-infix in dotted notation Alan Manuel Gloria 17 Sep 2012 00:17 UTC
Re: curly-infix in dotted notation David A. Wheeler 17 Sep 2012 00:44 UTC

curly-infix in dotted notation Alan Manuel Gloria 17 Sep 2012 00:17 UTC

You know, an s-expr of the form:

 (superop op a b c ...)

can be expressed in a curly-infix dotted notation as:

(superop . {a op b op c op ...})

So for example, if you want a list of the sum of the numbers in two
other lists as and bs:

(map . {as + bs})

And if you want a procedure that adds 2 to its argument:

(cut . {<> + 2})

Interesting....

Sincerely,
AmkG