Skip to content

Commit

Permalink
Solutions to lab 02
Browse files Browse the repository at this point in the history
  • Loading branch information
nmheim committed Mar 6, 2024
1 parent 56197c9 commit e7bc635
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions labs/lab02.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ your implementation function can return precise rational numbers like `(average-
1/2`. If you want to have the usual floating-point representation, use the function
`exact->inexact`, transforming the result into the imprecise floating-point representation.

<!--
::: details Solution
```scheme
(define (average-list lst)
Expand All @@ -141,7 +140,6 @@ your implementation function can return precise rational numbers like `(average-
(exact->inexact (/ (iter lst 0) (length lst))))
```
:::
-->


## Task 2
Expand All @@ -166,7 +164,6 @@ numbers and returns a list of averages of these `n`-tuples. E.g. `(n-block-avera
built segment of consecutive elements. The second tracks how many elements we must read from the
list to complete the `n`-tuple of consecutive elements.

<!--
::: details Solution
```scheme
(define (split-list n lst)
Expand All @@ -181,4 +178,3 @@ list to complete the `n`-tuple of consecutive elements.
(map average-list (split-list n lst)))
```
:::
-->

0 comments on commit e7bc635

Please sign in to comment.