Skip to main content
GameDev.net gamedev.net
🔒 Locked

infix in ML

Started by cignox1 Oct 21, 2003 at 8:07 AM 0 replies 600+ views
Original Post
cignox1
cignox1
Hi, I''m currently studing ML (using SML) and somewhere I found the statement ''infix''. What exactly it? I was unable to find it googling for a while, so I decided to ask in this forum. Thank you!
antareus
antareus
Consider: 5 + 8.
The + is an infix operator, it has operands on both sides.

At least thats how I understand.

One cool thing you can do in ML is convert an infix operator into a prefix one using "op":

(op +)(5,8) == 5 + 8
--God has paid us the intolerable compliment of loving us, in the deepest, most tragic, most inexorable sense.- C.S. Lewis

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.