concept computation in category idris
appears as: computation, computations

This is an excerpt from Manning's book Type-Driven Development with Idris.
If the result is Just x, pass x to the rest of the computation.
Type, refine—The type of the ?Functor_rhs_1 hole tells you that x is a stateful computation: You can continue the definition by extracting the value from the computation x using Bind:stateType : Type b : Type a : Type func : a -> b x : State stateType a -------------------------------------- Functor_rhs_1 : State stateType bFunctor (State stateType) where map func x = Bind x (\val => ?Functor_rhs_1)