Skip to content

Commit 108efe6

Browse files
authored
Fit the statement to the output
The Freq returns pairs, we want the frequency only...
1 parent a99e7e5 commit 108efe6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

labs/lab13.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,6 @@ Node 1 (Node 0 (Node 2 Nil Nil) (Node 1 (Node 2 Nil Nil) (Node 1 Nil Nil))) (Nod
344344
You can also check that the method does not provide a uniform distribution.
345345
```haskell
346346
> trees = runRandom (replicateM 10000 (randTree 3 2)) 1
347-
> execState (freqS trees) []
347+
> map snd $ execState (freqS trees) []
348348
[387,234,210,448,221,187,207,223,200,214,403,428,218,409,222,379,199,199,235,206,215,209,184,223,206,187,222,416,187,213,190,193,438,231,222,221,205,204,209,196]
349349
```

0 commit comments

Comments
 (0)