trying to convert a code from FPMortals to kotlin:...
# arrow
k
trying to convert a code from FPMortals to kotlin:
Copy code
def echo[C[_]](implicit t: Terminal[C], e: Execution[C]): C[String] =
    t.read.flatMap { in: String =>
      t.write(in).map { _: Unit =>
        in
      }
    }