package coq-core
The Coq Proof Assistant -- Core Binaries and Tools
Install
Dune Dependency
Authors
Maintainers
Sources
coq-8.19.1.tar.gz
md5=13d2793fc6413aac5168822313e4864e
sha512=ec8379df34ba6e72bcf0218c66fef248b0e4c5c436fb3f2d7dd83a2c5f349dd0874a67484fcf9c0df3e5d5937d7ae2b2a79274725595b4b0065a381f70769b42
doc/coq-core.lib/Util/Array/Smart/index.html
Module Array.Smart
Source
The functions defined in this module are optimized specializations of the main ones, when the returned array is of same type as one of the original array.
Smart.map f a
behaves as map f a
but returns a
instead of a copy when f x == x
for all x
in a
.
Smart.map2 f a b
behaves as map2 f a b
but returns a
instead of a copy when f x y == y
for all x
in a
and y
in b
pointwise.
Smart.fold_left_mapf a b
behaves as fold_left_map
but returns b
as second component instead of a copy of b
when the output array is pointwise the same as the input array b
Source
val fold_left2_map :
('a -> 'b -> 'c -> 'a * 'c) ->
'a ->
'b array ->
'c array ->
'a * 'c array
Smart.fold_left2_map f a b c
behaves as fold_left2_map
but returns c
as second component instead of a copy of c
when the output array is pointwise the same as the input array c
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>