Skip to content

Commit

Permalink
Updates secrets for order of operations clarity (#1536)
Browse files Browse the repository at this point in the history
* Updates instruction for order of operations

The order matters and is clear

* Format

---------

Co-authored-by: Angelika Cathor <angelikacathor@fastmail.com>
  • Loading branch information
druyang and angelikatyborska authored Nov 25, 2024
1 parent 3421ff1 commit e2fbeec
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions exercises/concept/secrets/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ xorer.(3)
Implement `Secrets.secret_combine/2`. It should return a function which takes one argument and applies to it the two functions passed in to `secret_combine` in order.

```elixir
multiply = Secrets.secret_multiply(7)
divide = Secrets.secret_divide(3)
combined = Secrets.secret_combine(multiply, divide)
add_one = Secrets.secret_add(1)
multiply_by_2 = Secrets.secret_multiply(2)
combined = Secrets.secret_combine(add_one, multiply_by_2)

combined.(6)
# => 14
combined.(3)
# => 8
```

0 comments on commit e2fbeec

Please sign in to comment.