Top "Infix-notation" questions

Operators are written infix-style when they are placed between the operands they act on (e.g. 2 + 2).

Haskell infix function application precedence

Let f x y = x * y. We can apply this function in two ways: f 5 6, or, using infix notation, 5 `f` 6. …

function haskell operators operator-precedence infix-notation
Scala - infix vs dot notation

Is there a best practice for one over the other? I've been reading the Scala book by Odersky, et al. …

scala methods call infix-notation
Convert Infix to Postfix with Stack

I have to make a program that changes an expression written in Infix notation to Postfix notation. I am running …

java stack infix-notation
Shunting-yard algorithm in c++

I need a function that takes an infix string (like "3 + 4 * 9"), and convert it to postfix (like "4 9 * 3 +"). I got it working …

c++ infix-notation postfix-notation shunting-yard
How does the 'infix' work?

I'm playing with the infixr, infixl and infix declarations. I understand how infixr and infixl works: -- Test expression: 40 +++ 20 +++ 50 +++ 10 * 10 -- …

haskell infix-notation
Prefix notation to infix notation in Python

I am writing a small calculator (with prefix notation) and I'm curious how I'd convert prefix notation to infix notation. …

python math stack infix-notation prefix-notation
How to make a right-associative infix operator?

I have an associative operation >>. The problem is that its cost linearly depends on the size of its …

scala associative infix-notation