package range

  1. Overview
  2. Docs
Fold on integer range

Install

Dune Dependency

Authors

Maintainers

Sources

0.3.tar.gz
sha256=7f84afe9c34a274043a5cae69b6ec8cc19e4823554d16f7bebfd368753f9dbb3
md5=e777571f1265883920f3c4d7542c828b

Description

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

Published: 29 Nov 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.01.0"

Dev Dependencies

None

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.