|
Scala example source code file (MonadReader.scala)
The MonadReader.scala Scala example source codepackage scalaz //// /** * */ //// trait MonadReader[F[_], S] extends Monad[F] { self => //// def ask: F[S] def local[A](f: S => S)(fa: F[A]): F[A] def scope[A](k: S)(fa: F[A]): F[A] = local(_ => k)(fa) def asks[A](f: S => A): F[A] = map(ask)(f) //// } object MonadReader { @inline def apply[F[_], S](implicit F: MonadReader[F, S]): MonadReader[F, S] = F //// //// } Other Scala examples (source code examples)Here is a short list of links related to this Scala MonadReader.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.