elm icon indicating copy to clipboard operation
elm copied to clipboard

Concept: set

Open mpizenberg opened this issue 4 years ago • 4 comments

Design

Learning objectives

  • Know about the Set data structure.
  • Know how to create an empty set.
  • Know how to add elements to a set.
  • Know how to remove elements to a set.
  • Know how to convert sets to and from lists.
  • Know how to check if an element is part of a set.
  • Know how to combine multiple sets.
  • Know how to filter and partition a set.

Out of scope

  • Nothing is really out of scope.

Concepts

  • set

Prerequisites

  • comparison

mpizenberg avatar Sep 19 '21 17:09 mpizenberg

I had a random idea for a suitable exercise so I'm putting it here as a suggestion: gotta-catchem-all, an exercise where you collect trading cards and try to have the full collection.

You can start a new collection (empty set), get new cards but your collection doesn't improve for cards you already have, remove one to give to your little sister, combine collection with your best friend, select the shiny cards...

jiegillet avatar Sep 29 '22 11:09 jiegillet

Another random idea, we have the possibility of introducing two concepts in one exercise, so I was thinking we could introduce comparisons #423 together with this one, since sets need to be ordered.

jiegillet avatar Oct 03 '22 13:10 jiegillet

Hi @jiegillet , this issue is done now I think?

ceddlyburge avatar Oct 25 '22 18:10 ceddlyburge

No, I ended up doing separate exercises. I have already written the about.md for sets, maybe I'll open a draft PR

jiegillet avatar Oct 26 '22 00:10 jiegillet