2 ms·
You can get cute about it: http://code.activestate.com/recipes/384122-infix-operators/ http://code.activestate.com/recipes/384122-infix-operators/ The code th
by maxerickson 13y ago
You can get cute about it:
http://code.activestate.com/recipes/384122-infix-operators/ http://code.activestate.com/recipes/384122-infix-operators/
The code there overrides | to construct arbitrary operators that are used by wrapping an object in |, like:
a |x| b
where x defines the custom behavior.