Lemmas about Array.forIn'
and Array.forIn
. #
Monadic operations #
mapM #
foldlM and foldrM #
forM #
forIn' #
We can express a for loop over an array as a fold,
in which whenever we reach .done b
we keep that value through the rest of the fold.
We can express a for loop over an array which always yields as a fold.
We can express a for loop over an array as a fold,
in which whenever we reach .done b
we keep that value through the rest of the fold.
We can express a for loop over an array which always yields as a fold.
Variant of filterM_toArray
with a side condition for the stop position.
Variant of filterRevM_toArray
with a side condition for the start position.
Variant of filterMapM_toArray
with a side condition for the stop position.
Recognizing higher order functions using a function that only depends on the value. #
This lemma identifies monadic folds over lists of subtypes, where the function only depends on the value, not the proposition, and simplifies these to the function directly taking the value.
This lemma identifies monadic folds over lists of subtypes, where the function only depends on the value, not the proposition, and simplifies these to the function directly taking the value.
This lemma identifies monadic maps over lists of subtypes, where the function only depends on the value, not the proposition, and simplifies these to the function directly taking the value.