mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-29 22:51:51 +03:00
bf87b623ef
* add `scanr` and `scanr1` for `Vect` * add tests * tests * docstring * typos * add unsnoc * simplify unsnoc * docstring * typos
8 lines
271 B
Plaintext
8 lines
271 B
Plaintext
1/1: Building Vect (Vect.idr)
|
|
Main> [(0 ** []), (1 ** [3]), (5 ** [3, 4, 5, 6, 7])]
|
|
[(0 ** ([], 3)), (1 ** ([3], 4)), (2 ** ([3, 4], 5))]
|
|
[(1 ** [2]), (2 ** [6, 2]), (4 ** [120, 24, 6, 2])]
|
|
[[2, 3, 4], [3, 4], [4], []]
|
|
[(1 ** [3]), (3 ** [60, 12, 3])]
|
|
Main> Bye for now!
|