amuradyan / fpscala

Exercises for the Functional Programming in Scala book.
3 stars 0 forks source link

Better Pattern Matching #2

Open TigranOhanyan opened 1 year ago

TigranOhanyan commented 1 year ago

https://github.com/amuradyan/fpscala/blob/f3c6abaaa4889652675362c787cf791b69efda19/src/main/scala/strictness_and_laziness/Strim.scala#L66

if condition can be on the left side of the arrow

amuradyan commented 1 year ago

@TigranOhanyan thanks a lot.

I found a similar issue in the Opshn and tried to fix them both in #3