Skip to content

Commit 5252173

Browse files
authored
Remark on changing order of (m + n) to (n + m) in drop' in Section 6.3 (#88)
* remarked on changing order of (m + n) to (n + m) in drop' * trying to fix drop' duplication error * it's actually the second xs * trying to fix markdown error * changed quote to backticks and repl
1 parent a4aeb17 commit 5252173

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/Tutorial/Dependent.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,15 @@ drop' 0 xs = xs
709709
drop' (S k) (_ :: xs) = drop' k xs
710710
```
711711

712+
Note that changing the order from `(m + n)` to `(n + m)`
713+
in the second parameter will cause an error at the second `xs`:
714+
715+
```repl
716+
While processing right hand side of drop'. Can't solve constraint between: plus n 0 and n.
717+
```
718+
719+
You will learn why in the next section.
720+
712721
### Limitations
713722

714723
After all the examples and exercises in this section

0 commit comments

Comments
 (0)