#Scala: validation using cats.
Stop doing:
(validator1(a) |@| validator2(a)).map{case _ => a}
Start doing:
validator1(a) *> validator2(a)
-
-
probably would write it more like: http://scastie.org/29064
-
ok, and what would be the advantage compared to my original tweet version?
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
