Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 002b66ac authored by Louis Duchemin's avatar Louis Duchemin
Browse files

Implement range_iter function

parent 78fa2386
......@@ -14,6 +14,15 @@ let tree_from_file ?(alpha = 1.) fn =
length, condition
let range_iter a b ~f =
let rec loop i=
if i < b then (
f i ;
loop (i + 1)
loop a
let int_fold a b ~init ~f =
let rec loop acc i =
if i >= b then acc else loop (f acc i) (i + 1)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment