Skip to content

Commit

Permalink
Start
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuihtlauac ALVARADO committed Jan 17, 2024
1 parent b2b2e69 commit 2fae3ba
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions task.ml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
let ignore _ = ()
let [@warning "-27"] ignore x = failwith "Not yet implemented"

let map f u =
let rec loop acc = function
| [] -> acc
| x :: u -> loop (f x :: acc) u in
List.rev (loop [] u)
let [@warning "-27"] map f u = failwith "Not yet implemented"

let range lo =
let rec loop u i = if i < lo then u else loop (i :: u) (i - 1) in loop []
let [@warning "-27"] range lo hi = failwith "Not yet implemented"

0 comments on commit 2fae3ba

Please sign in to comment.