Same as tuple construction and as aliasing in a function parameter, I could not find any docs, I found it by using the F# syntax :-)
On Tuesday, September 27, 2016 at 3:26:20 PM UTC+1, Rupert Smith wrote: > > As aluded to in Brian Marick's recent thread, there is an 'as' keyword > which can be used to pattern match on a union type in within a function > arguments, like this: > > animation ((DropsPerSecond raw) as dropsPerSecond) = … > > No mention of it in the syntax guide: > http://elm-lang.org/docs/syntax#union-types or the elm language FAQ: > http://faq.elm-community.org/ > > Is it safe to use it in the sense that it is an official part of the > language and is not something that is not documented as it may go away in > the future? > > ... I am begining to think it would be worth compiling a list of missing > documentation and trying to organize an effort to contribute the missing > information as pull request. > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
