Const
Const(out) is a stage that always produces the same constant value, ignoring its input entirely.
It is a Fn[Any, O], so it always yields Status.Success and is stateless and freely reusable.
import h8io.stages.*
import h8io.stages.std.*
val always42 = Const(42)
// always42: Const[Int] = Const(out = 42)
always42("ignored")
// res0: Yield.Some[Any, Int, Nothing] = Some(
// out = 42,
// status = Success,
// evolution = Const(out = 42)
// )
always42(())
// res1: Yield.Some[Any, Int, Nothing] = Some(
// out = 42,
// status = Success,
// evolution = Const(out = 42)
// )