Hey guys, I played a bit with `StateT` APi. <https...
# arrow
s
Hey guys, I played a bit with
StateT
APi. https://github.com/kategory/kategory/compare/simon-statet-docs So you can achieve following code. https://gist.github.com/nomisRev/89004d77d548dd9910725bf63077a556 i.e. lifting
fun pop(stack: Stack): Either<String, Tuple2<Stack, Int>>
to
StateT<EitherHK, String, Stack>
with
::pop.stateT()