Description
Hi!
I just did Grade School and my add
ended up like 20lines long, with a filter
and reduce
! 🤯
I reviewed the community solutions and I noticed that pretty much none of them would handle adding the same student to the same grade twice, ie: test #11: Most dont remove dups in the grade roster, they just blindly add.
This caused me to poke into this test further and I found that the current "example" solution:
elixir/exercises/practice/grade-school/.meta/example.ex
Lines 2 to 8 in 1a1cec4
is deficient when the order of add
s in this test is reverse (and why my attempt is so long!):
elixir/exercises/practice/grade-school/test/school_test.exs
Lines 20 to 27 in 1a1cec4
I'd like to:
- duplicate this test but with the
add
order reversed - update the "example", though maybe after someone reviews my solution! there has got to be a better one?!? 😁
Should I continue this?
thx!! << q