scala - Is 35.+(10) still called infix notation? -
i talked about
35.+(10) as illustration of postfix notation because understood
35 + 10 to infix notation (at to the lowest degree talks illustration of infix notation). that's wrong isn't it?
35 10 + would postfix.
so how distinguish between first 2 examples name? both "infix" sec neater way?
indeed still "infix".
postfix means operands operator come in stream before operator itself. (an illustration factorial "!" operator in mathematics)
prefix means operator comes before operands (an illustration "negate"/"-" operator create number negative).
infix means operator somewhere between operands.
scala math syntax functional-programming
No comments:
Post a Comment