In F# there are pattern matching case/of statements can be written as functions, which is handy for composing with other functions, piping with |> etc:
let foo1 x = match x with | 1 -> "one" | _ -> "not one" let foo2 = function | 1 -> "one" | _ -> "not one" Has there been any consideration for something similar in Elm (or is there something in Elm already!) - I find myself often wrapping case/of in lambdas, which is no big deal but would be a little nice to use it directly. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.