jacob
12/05/2018, 10:56 PMfun <A, B>Either<A, B>.filterOrHandle(p: (B) -> Boolean, f: (B) -> A): Either<A, B> {
}
I was two seconds behind youpakoito
12/05/2018, 10:56 PMpakoito
12/05/2018, 10:57 PMjacob
12/05/2018, 10:57 PMMike
12/08/2018, 1:16 AMTask :detekt FAILEDWas passed main parameter 'C:\Users\mikez\dev\arrow/reports/report.detekt' but no main parameter was defined in your arg class Usage: detekt [options] Options: --baseline, -b If a baseline xml file is passed in, only new code smells not in the baseline are printed in the console. --config, -c Path to the config file (path/to/config.yml).
rrader
12/08/2018, 5:34 PMUndefined
in library?
Something like https://wiki.haskell.org/Undefined or like undefined
from JavaScript
I need it to implement this https://medium.com/workflowgen/graphql-mutations-partial-updates-implementation-bff586bda989raulraja
12/08/2018, 5:42 PMTODO()
raulraja
12/08/2018, 5:43 PMraulraja
12/08/2018, 5:43 PMpakoito
12/08/2018, 8:11 PMpakoito
12/08/2018, 8:12 PMAdrianRaFo
12/10/2018, 1:18 PM1.0.0
when kotlin 1.3.0
was launched. It's a good idea to use it/migrate instead of standard gradle?dewildte
12/13/2018, 7:59 PMStateT
for that?dewildte
12/13/2018, 8:00 PMdewildte
12/13/2018, 8:01 PMState
or StateT`.cifa
12/14/2018, 9:23 AMTry { "$%" }.map { it.toInt() }
throws an exception rather than returning a Failure
?jacob
12/14/2018, 9:25 AMjacob
12/14/2018, 9:25 AMsimon.vergauwen
12/14/2018, 9:29 AMflatMap
instead. Where the throwing operation is actually wrapped in Try
simon.vergauwen
12/14/2018, 9:30 AMTry { "$%" }.flatMap { Try { it.toInt() } }
simon.vergauwen
12/14/2018, 9:30 AMTry { "$%".toInt() }
cifa
12/14/2018, 9:30 AMTry
in Scala I got caught out by this behaviourcifa
12/14/2018, 9:31 AMTry { "$%".toInt() }
🙂simon.vergauwen
12/14/2018, 9:32 AMsimon.vergauwen
12/14/2018, 9:33 AMTry
or Vavr
. @raulraja could probably give you a better explanation related to that.simon.vergauwen
12/14/2018, 9:33 AMsimon.vergauwen
12/14/2018, 9:33 AMTry.map { f() }
catches but Functor[Try].map(try)(a => f(a))
doesn’tjacob
12/14/2018, 9:33 AMsimon.vergauwen
12/14/2018, 9:34 AMjacob
12/14/2018, 9:34 AM