4 ms·
I liked the somewhat elegant heuristic for general infix-to-prefix conversion: <quote> {...} contains an "infix list". If the enclosed infix list has (1) an od
by limmeau 16y ago
I liked the somewhat elegant heuristic for general infix-to-prefix conversion:
<quote>
{...} contains an "infix list". If the enclosed infix list has (1) an odd number of parameters, (2) at least 3 parameters, and (3) all even parameters are the same symbol, then it is mapped to "(even-parameter odd-parameters)". Otherwise, it is mapped to "(nfx list)" — you'll need to have a macro named "nfx" to use it
</quote>
That being said, (still-prefer 'I (using 'parentheses :in 'Scheme)).
Now, if someone added mix-fix syntax to Scheme...