Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does `some_function` construction mean in Elm?

Tags:

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?

like image 699
Max Semikin Avatar asked Dec 07 '25 18:12

Max Semikin


1 Answers

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.

like image 149
Matthias Winkelmann Avatar answered Dec 10 '25 09:12

Matthias Winkelmann