Jonathan Torres

Results 7 issues of Jonathan Torres

The word "add" was added twice

```js function list_of_values_left(exps, env) { function loop(exps) { if (is_null(exps)) { return null; } return pair(evaluate(head(exps), env), loop(tail(exps))); } return loop(exps); } function list_of_values_right(exps, env) { return reverse(list_of_values_left(reverse(exps), env)); }...

_work in progress
Exercise solution

```js function an_integer_between(low, high) { require(low

Exercise solution

`mystery` will reverse the list `x` in-place. Initially `v` looks like this: ![3 14_a](https://user-images.githubusercontent.com/195615/211219069-c6e5d01d-be19-4e9b-8575-3ff8e77910ff.jpg) After evaluating `const w = mystery(v)`, `v` and `w` become: ![3 14_b](https://user-images.githubusercontent.com/195615/211219090-0833461c-eb95-4175-ab9e-438664dc5653.jpg) - `v` prints `[a,...

Exercise solution

![pointers](https://user-images.githubusercontent.com/195615/211182823-fd28caf9-25ea-47d9-823e-fea33eb5b1f5.jpg) - If we try to compute `last_pair(z)`, the program will enter in a infinite loop, since the end of the list points back to the beginning.

Exercise solution

![pointers](https://user-images.githubusercontent.com/195615/211182631-d64d8f24-5bd8-49ac-a01b-f5f72d390433.jpg) - After the call to `const z = append(x, y)`, `tail(x) = ["b", null]`. Since `append` creates a new copy of `x` with the elements of `y`. ![pointers](https://user-images.githubusercontent.com/195615/211182761-ee95b94b-0764-4267-a731-ac7dfb2f63be.jpg) -...

_work in progress
Exercise solution