package iter
Simple abstraction over `iter` functions, intended to iterate efficiently on collections while performing some transformations
Install
Dune Dependency
Authors
Maintainers
Sources
v1.3.tar.gz
md5=68ddbe4a3626943308d9a4f2be9fa146
sha512=ab4c1002cb1fbc83d6dc71bae6f47666eb12f63e23c83dd38a5a2e9a9a6f2b3368ef477a7e269b7c6352035e274b745aa37bf082b7aef8d3a88e380097310678
doc/src/iter.bigarray/IterBigarray.ml.html
Source file IterBigarray.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
(* This file is free software, part of iter. See file "license" for more details. *) (** {1 Interface and Helpers for bigarrays} *) open! IterBigarrayShims_ let of_bigarray b yield = let len = Bigarray.Array1.dim b in for i=0 to len-1 do yield b.{i} done let mmap filename = fun yield -> let fd = Unix.openfile filename [Unix.O_RDONLY] 0 in let len = Unix.lseek fd 0 Unix.SEEK_END in let _ = Unix.lseek fd 0 Unix.SEEK_SET in let b = bigarray_map_file fd Bigarray.char Bigarray.c_layout false len in try of_bigarray b yield; Unix.close fd with e -> Unix.close fd; raise e [@@ocaml.warning "-3"]
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>