/**
* Constructs a layer from the environment using the specified function.
*
* @tsplus static effect/core/io/Layer.Ops fromFunction
*/
export function fromFunction(tagA: Tag, tagB: Tag, f: (a: A) => B): Layer {
return Layer.fromEffectEnvironment(Effect.serviceWith(tagA, (a) => Env(tagB, f(a))))
}