Hi,
This code seems long winded. Can I simplify it?
type alias Model = { page : Page }
– this compiles
initLogin : ( Page, Cmd Msg )
initLogin =
let
( m, c ) =
Login.init
in
( LoginPage m, c |> Cmd.map LoginMsg )
What I want to get to is kind of like
– this does not
Login.init
|> (\m c -> LoginPage m, c |> Cmd.map LoginMsg )
Is this possible?
Thanks for your help!