law take_length
import bend-mathlib@0.8.1.0/list.bend as Listimport Base
312# Taking as many elements as the list has gives the list back.
313law take_length:
314 for -A: Data
315 for +xs: List<&2, A>
316 {List.take(&2, A, xs, List.length(&2, A, xs)) == xs : List<&2, A>}