Shrink.list.ones: def of bend-kit-property@0.4.0.0 Import: import bend-kit-property@0.4.0.0/shrink.bend as Shrink Lines 81-88 of bend-kit-property@0.4.0.0/shrink.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-property@0.4.0.0/shrink.bend&start_line=81&end_line=88 import Base # One element replaced by one of its candidates: the head's first, then the tail's. def list.ones(~A: Data, ~shrink: A -> List<&1, A>, +xs: List<&2, A>) -> List<&1, List<&2, A>>: match xs: case Nil{}: Nil{} case h <> t: List.append(&1, List<&2, A>, list.heads(A, shrink(h), t), list.cons(A, h, list.ones(~A, ~shrink, t))) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.append https://jend.leeeet.dev/definition.txt?path=bend-kit-property@0.4.0.0/shrink.bend&name=list.cons https://jend.leeeet.dev/definition.txt?path=bend-kit-property@0.4.0.0/shrink.bend&name=list.heads