Identity

Identity is a polymorphic singleton: a single Fn.Endo[Any] instance that passes its input through unchanged, always yielding Status.Success. Use Identity[T] to obtain a typed Fn.Endo[T].

import h8io.stages.*
import h8io.stages.std.*
val stage = Identity[String]
// stage: base.Fn.Endo[String] = <function1>
stage("hello")
// res0: Yield.Some[String, String, Nothing] = Some(
//   out = "hello",
//   status = Success,
//   evolution = <function1>
// )
stage.skip()
// res1: Evolution[String, String, Nothing] = <function1>