package range

  1. Overview
  2. Docs
Fold on integer range

Install

Dune Dependency

Authors

Maintainers

Sources

0.4.tar.gz
md5=5bf6414b906ea8be72efe2990dd7b13c

Description

Enable folding on integer range with split capacities for making distributed computing easier with libraries like functory

Published: 05 Dec 2018

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);;

Dependencies (2)

  1. dune < "3.0"
  2. ocaml >= "4.03.0"

Dev Dependencies

None

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.