python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Scala cats. How do I write Kleisli[F[_],A,B].ap?
I tried to write a Kleisli.ap function.
final case class Kleisli[F[_], -A, B](run: (A) ⇒ F[B]) extends Product with Serializable
def ap[C, D, AA <: A](f: Kleisli[F, AA, C])(implicit F: Apply[F], e...

Asada
Votes: 0
Answers: 1
Opportunistic, partially and asyncronously pre-processing of a syncronously processing iterator
Let us use Scala.
I'm trying to find the best possible way to do an opportunistic, partial, and asynchronous pre-computation of some of the elements of an iterator that is otherwise processed synchron...
Dyin
Votes: 0
Answers: 2
How to perform a for comprehension on Either return types that are wrapped in a F
Is there an easier way to flatMap over s1,s2,s3 such that I don't have to perform a match in my yield clause?
serviceFoo1(): F[Either[String, Foo]]
serviceFoo2(): F[Either[String, Foo]]
serviceFoo3...
Blankman
Votes: 0
Answers: 0
How to combine ADTs in Scala?
I have two layers in my app: domain and application. Each layer has its own "error" ADT. For instance:
package com.domain.person
sealed trait DomainError
case object NoPermission extends Do...
kibe
Votes: 0
Answers: 1