#Scala: validation using cats.
Stop doing:
(validator1(a) |@| validator2(a)).map{case _ => a}
Start doing:
validator1(a) *> validator2(a)
-
-
you mean it would be nicer if it worked this way too? asking b/c that code doesn't work
@puffnfresh @paul_snively@DanielaSfregola -
OTHA, this one would work: (validator1(_) andThen validator2)(a)
- 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.
