Closed angelikatyborska closed 6 days ago
This:
test "add 3" do add = Secrets.secret_add(3) assert add.(3) === 6 end
and this:
adder = Secrets.secret_add(2) adder.(2) # => 4
has driven a student to attempt solutions like this:
def secret_add(secret) do fn x -> x + x end end # or def secret_add(secret) do fn x -> secret + secret end end
We should change the examples to use different values.
This:
and this:
has driven a student to attempt solutions like this:
We should change the examples to use different values.