The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Reuse Functions Through Type Variables in Elm

Reuse Functions Through Type Variables in Elm

1:43
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.
Watch this lesson now
Avatar
egghead.io

Sometimes a function is useful for multiple 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, instead.

Avatar
marshallformula

Which editor are you using?

Avatar
Murphy

Hi, Marshallformula!

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

In reply to marshallformula
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?