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 c8e9f12
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
### Get Started

Click the green “Code” button, select the “Codespaces” tab, and create your own. Not too long after, you should be in VS Code inside your browser. Go to the “TERMINAL” tab, extend it and run `dune test`. Tests shoud fail, this is normal.


Open the files `task.ml` and `task.mli`.
* `task.mli` contains the description of what you should do.
* `task.ml` - write your code here

### Docs

```shell
Expand Down
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 c8e9f12

Please sign in to comment.