Utils

org.encalmo.lambda.Utils
object Utils

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Utils.type

Members list

Value members

Concrete methods

Concrete fields

Extensions

Extensions

extension [T, R <: Request[T]](request: R)
def printDebug(debug: String => Unit): R
extension (response: Response[String])
def printDebug(debug: String => Unit): Response[String]
extension [L, R](value: Either[L, R])
inline def forget: Either[L, Unit]
inline def tap(f: (Either[L, R]) => Unit): value.type
inline def tapLeft(f: L => Unit): value.type
inline def tapRight(f: R => Unit): value.type
extension [T](value: Option[T])
inline def tap(f: (Option[T]) => Unit): value.type
inline def tapNone(f: => Unit): value.type
inline def tapSome(f: T => Unit): value.type
extension [T](value: Either[Error, Option[T]])
inline def flatMapE[R](f: T => Either[Error, R]): Either[Error, Option[R]]
inline def flatMapEO[R](f: T => Either[Error, Option[R]]): Either[Error, Option[R]]
extension [T](value: Either[Throwable, T])
inline def eitherErrorOr[R](result: R): Either[Error, R]
inline def eitherErrorOrResult: Either[Error, T]
extension [T](value: Either[Throwable, Either[Error, T]])