Reuse Functions Through Type Variables in Elm

Share this video with your friends

Send Tweet

Sometimes a function is useful for many different types. Instead of writing a copy of that function for each different type, learn to use type variables and allow the same function to be reused.

Nate Gibbons
Nate Gibbons
~ 8 years ago

Which editor are you using?

Murphy Randle
Murphy Randle(instructor)
~ 8 years ago

Hi, Marshallformula!

I'm using Atom in these videos, with this general setup: https://gist.github.com/splodingsocks/cec8f09f8d2d0bd11afd4302e33e1684

Nate Gibbons
Nate Gibbons
~ 8 years ago

Thanks!