package range
Fold on integer range
Install
Dune Dependency
Authors
Maintainers
Sources
0.5.tar.gz
sha256=19fce18415476f90b4a465a195e3e1f843c3d71ed702492b4771c3fecccc33ee
md5=a76a23bebf32b8b1f62fdea1701c0ff4
Description
Library to work on range of sequential integers with features like : split, map, filter capacities. Designed for making distributed computing easier with libraries like functory.
Published: 23 Jan 2019
README
README
Range Library This small library has two goals : * enable to fold a sequence of integers like a list * split a range, making distributed computing easy Example of usage (* print numbers between 100 and 200 *) Range.(from 100 200 |> iter (Printf.printf "%d\n"));; (* print sum of all values between 1 and 50 *) Range.(from 1 50 |> fold (+) 0 |> print_int);; (* print sum of all values between 1 and 50, adding 4 to all elements and excluding 53 *) Range.(from 1 50 |> map ((+) 4) |> filter ((!=) 53) |> fold (+) 0 |> print_int);; API documentation available at : https://aldrikfr.github.io/range/
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page