Skip to content

use pattern matching rather than when#30

Open
rab wants to merge 1 commit intocromwellryan:masterfrom
rab:pattern-matching-triangle-kata
Open

use pattern matching rather than when#30
rab wants to merge 1 commit intocromwellryan:masterfrom
rab:pattern-matching-triangle-kata

Conversation

@rab
Copy link
Copy Markdown

@rab rab commented Jan 8, 2014

Rather than having multiple equality/inequality tests in a guard clause, you can let the pattern-matching do the heavy lifting.

Whether you want to show this is another question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant