package batteries
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
A community-maintained standard library extension
Install
dune-project
Dependency
Authors
Maintainers
Sources
batteries-3.11.0.tar.gz
md5=096be9e83e347b4c7b5b6e5b2af22992
sha512=621dca842c4a7adf0ac1e907bf44c1405e0b66a088987a138a4f4e98ca744815913bf87fd780619151cb049a07d7fdb1e8adb7b65698ab46b8c2dfe46cd7119d
doc/batteries.unthreaded/BatTuple/Tuple2/index.html
Module BatTuple.Tuple2Source
Pairs. Some of the functions here are also exposed in Pervasives, as documented below.
Equivalent to Pervasives.fst.
Equivalent to Pervasives.snd.
Equivalent to BatPervasives.(***).
Like map but specialized for tuples with elements of the same type.
mapn f is equivalent to map f f.
map1 f (x,y) returns (f x,y)
map2 f (x,y) returns (x,f y)
Source
val print :
?first:string ->
?sep:string ->
?last:string ->
('o BatIO.output -> 'a -> unit) ->
('o BatIO.output -> 'b -> unit) ->
'o BatIO.output ->
('a * 'b) ->
unitSource
val printn :
?first:string ->
?sep:string ->
?last:string ->
('o BatIO.output -> 'a -> unit) ->
'o BatIO.output ->
('a * 'a) ->
unitSource
val compare :
?cmp1:('a -> 'a -> int) ->
?cmp2:('b -> 'b -> int) ->
('a * 'b) ->
('a * 'b) ->
intinclude BatEnum.Enumerable with type 'a enumerable = 'a * 'a
The data structure, e.g. 'a List.t
Return an enumeration of the elements of the data structure
Build a data structure from an enumeration
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>