Use Sets with Ord Typeclass instances

InstructorJustin Woo

Share this video with your friends

Send Tweet

In Purescript, we can use set data structures using Purescript-Set, but many of its functions come with an Ord typeclass constraint. In this lesson, we'll learn how to understand the typeclass constraints on a function and how to create instances of typeclasses.

Justin Wooinstructor
~ 7 years ago

If you want to read more about type classes in Purescript, check out the section in Purescript by Example!