From: Casey Hawthorne
Subject: In Haskell a prefix function can be converted to infix by wrapping it in back quotes, e.g. `max`, ...
Date: 
Message-ID: <uqdba21bh61nb7rd73anbnatuh8a7be2ps@4ax.com>
In Haskell a prefix function can be converted to infix by wrapping it
in back quotes, e.g. `max`, and an infix function can be converted to
prefix by wrapping it in parentheses, e.g. (+).

Can Lisp do something similar, converting prefix functions to infix?

--
Regards,
Casey
From: Alexander Schmolck
Subject: Re: In Haskell a prefix function can be converted to infix by wrapping it in back quotes, e.g. `max`, ...
Date: 
Message-ID: <yfshd22yw4p.fsf@oc.ex.ac.uk>
Casey Hawthorne <·················@istar.ca> writes:

> In Haskell a prefix function can be converted to infix by wrapping it
> in back quotes, e.g. `max`, and an infix function can be converted to
> prefix by wrapping it in parentheses, e.g. (+).
> 
> Can Lisp do something similar, converting prefix functions to infix?

Sure, 2 lines of code

   (defmacro ? (arg0 predicate &rest args) 
     (list* predicate arg0 args))

and you can write

   (when (? a > b) ...) 

instead of
   
   (when (> a b) ...)

'as