Sha256: da2c055abc61380ff68b3c05ca7b5221999fa466271125256bf415b6be2cd310

Contents?: true

Size: 608 Bytes

Versions: 53

Compression:

Stored size: 608 Bytes

Contents

datatype allergen = Eggs
                  | Peanuts
                  | Shellfish
                  | Strawberries
                  | Tomatoes
                  | Chocolate
                  | Pollen
                  | Cats

(* given a code generate a list of all allergens this code represents *)
fun list (code: int): allergen list =
  raise Fail "'list' has not been implemented"

(* given a code and an allergen return true or false
   whether the specified allergen is represented by the code *)
fun allergic_to (code: int) (a: allergen): bool =
  raise Fail "'allergic_to' has not been implemented"

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
trackler-2.2.1.3 tracks/sml/exercises/allergies/allergies.sml
trackler-2.2.1.2 tracks/sml/exercises/allergies/allergies.sml
trackler-2.2.1.1 tracks/sml/exercises/allergies/allergies.sml
trackler-2.2.1.0 tracks/sml/exercises/allergies/allergies.sml
trackler-2.2.0.6 tracks/sml/exercises/allergies/allergies.sml
trackler-2.2.0.5 tracks/sml/exercises/allergies/allergies.sml
trackler-2.2.0.4 tracks/sml/exercises/allergies/allergies.sml
trackler-2.2.0.3 tracks/sml/exercises/allergies/allergies.sml
trackler-2.2.0.2 tracks/sml/exercises/allergies/allergies.sml
trackler-2.2.0.1 tracks/sml/exercises/allergies/allergies.sml
trackler-2.2.0.0 tracks/sml/exercises/allergies/allergies.sml
trackler-2.1.0.55 tracks/sml/exercises/allergies/allergies.sml
trackler-2.1.0.54 tracks/sml/exercises/allergies/allergies.sml