Idris2/tests/base/data_vect001/expected
Joel Berkeley bf87b623ef
add scanr; scanr1; unsnoc for Vect (#2471)
* add `scanr` and `scanr1` for `Vect`

* add tests

* tests

* docstring

* typos

* add unsnoc

* simplify unsnoc

* docstring

* typos
2022-05-12 17:54:34 +01:00

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!