package travesty
Monadically traversable containers
Install
Dune Dependency
Authors
Maintainers
Sources
travesty-v0.6.1.tbz
sha256=9c7b3803620c54496a35983285242ec8e06a5efb1baa3523384d7184b7e9fab7
sha512=991646fe5bb899971d3f8c00432d4df6c45dbd81cbff885b28d30d9c228e5df61f1e8d61aadc164ec35c448093abb34fd7a7d571e1cdf4d3af25579bf400f167
doc/travesty.containers/Travesty_containers/Zipper/Plain/On_ident/index.html
Module Plain.On_ident
On_ident
is On_monad
specialised to the identity monad.
val pop_m :
'a t ->
on_empty:('a t -> ('a * 'a t) Base.Monad.Ident.t) ->
('a * 'a t) Base.Monad.Ident.t
pop_m zipper ~on_empty
behaves like pop, but executes a custom monadic action on_empty
, instead of returning an error, when the cursor is empty.
val peek_m :
?steps:Base.int ->
'a t ->
on_empty:('a t -> 'a Base.Monad.Ident.t) ->
'a Base.Monad.Ident.t
peek_m ?steps zipper ~on_empty
behaves like peek_opt, but executes a custom monadic action on_empty
, instead of returning None
, when the cursor is empty.
val step_m :
?steps:Base.int ->
'a t ->
on_empty:('a t -> 'a t Base.Monad.Ident.t) ->
'a t Base.Monad.Ident.t
step_m ?steps zipper ~on_empty
behaves like step, but executes a custom monadic action on_empty
, instead of returning an error, when the cursor is empty.
val map_m_head :
'a t ->
f:('a -> 'a Base.option Base.Monad.Ident.t) ->
on_empty:('a t -> 'a t Base.Monad.Ident.t) ->
'a t Base.Monad.Ident.t
map_m_head ?steps zipper ~on_empty
behaves like map_head, but executes a custom monadic action on_empty
, instead of leaving the zipper unchanged, when the cursor is empty.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>