In Haskell, functions are generally performed using prefixes. But there is a way to change the prefix to infix.
All we need to do is wrap the function together, and we can turn a function with 2 parameters into infix form.
Prelude> "A" ' Notelem ' ["B"] true prelude> Notelem "a" ["B"] True
function infix, not only can have 2 parameters of the function into infix form, can also be more than 2 functions into infix form.
But it looks pretty ugly.
Prelude> FOLDL (+) 0 [1..5]15prelude> ((+) ' foldl ' 0) [1..5]15
The most useful place for a function to infix personal feelings is to stream the data, enter the data from a function, and then enter the next function sequentially. And these functions just need to be written down in the normal order, without having to write in reverse.
FST Col ' Notelem ' ["Order"] using infix method (notelem.fst) Col ["Order"]
The function infix of Haskell