Fixed README

This commit is contained in:
Dmitry Boulytchev 2018-11-07 15:05:01 +03:00
parent 8917ae20e7
commit d575f2ca15
3 changed files with 3 additions and 3 deletions

View file

@ -6,7 +6,7 @@ Prerequisites: ocaml [http://ocaml.org], opam [http://opam.ocaml.org].
Building:
* `opam pin add GT https://github.com/dboulytchev/GT.git`
* `opam pin add GT https://github.com/kakasu/GT.git#ppx`
* `opam pin add ostap https://github.com/dboulytchev/ostap.git`
* `opam install ostap`
* `opam install GT`

View file

@ -1,6 +1,6 @@
fun insert (tree, value) {
case tree of
`Empty -> return `Node (value, `Empty, `Empty)
`Empty -> return `Node (value, `Empty, `Empty)
| `Node (x, left, right) ->
if x > value
then return `Node (x, insert (left, value), right)

View file

@ -1,7 +1,7 @@
fun collect_ints_acc (v, tail) local i {
case v of
a@#unboxed -> return `cons (a, tail)
| #string -> return tail
| #string -> return tail
| _ ->
for i := 0, i < v.length, i := i + 1 do
tail := collect_ints_acc (v[i], tail)