def join_blocks
import cli@0.2.0.0/cli.bend as Cliimport Base
5629# Blocks apart by one blank line; the page ends with a newline.
5630def join_blocks(blocks: List<&2, List<&2, Segment>>) -> List<&2, Segment>:
5631 match blocks:
5632 case Nil{}: Nil{}
5633 case block <> tail: List.append(&2, Segment, block, more_blocks(tail))