def chunks.fin
import bend-kit-multipart@0.3.0.0/multipart.bend as Multipartimport Base
659def chunks.fin(r: Result<&1, &1, String, Unit>, ps: List<&1, Part>) -> Result<&1, &1, String, List<&1, Part>>:
660 match r:
661 case Fail{e}:
662 Fail{e}
663 case Done{u}:
664 Done{List.reverse(&1, Part, ps)}