Max Semikin
Max Semikin

Reputation: 974

What does `some_function` construction mean in Elm?

I was looking into the elm-form package docs and found here this piece of code:

field "myfield" (int `andThen` minInt 10)

What do these quotes mean? Is it yet another way to apply a function?

Upvotes: 3

Views: 78

Answers (1)

Matthias Winkelmann
Matthias Winkelmann

Reputation: 16394

It was a way to use any function as an infix, as in 3 + 5.

BUT: It's been removed in elm 0.18: migration notes.

Upvotes: 6

Related Questions