tracks/nim/exercises/allergies/example.nim in trackler-2.2.1.159 vs tracks/nim/exercises/allergies/example.nim in trackler-2.2.1.160
- old
+ new
@@ -15,10 +15,10 @@
"pollen",
"cats"
]
-proc is_allergic_to*(allergies: Allergies, allergy: string): bool =
+proc isAllergicTo*(allergies: Allergies, allergy: string): bool =
(allergies.score and 1 shl allergiesList.find(allergy)) != 0
proc lst*(allergies: Allergies): seq[string] =
- allergiesList.filterIt(allergies.is_allergic_to(it))
+ allergiesList.filterIt(allergies.isAllergicTo(it))
\ No newline at end of file