static S topBottomLines(char c, S s) { int w = lengthOfLongestLine(s); S line = rep(c, w); ret fromLines(concatLists(ll(line), toLines(s), ll(line))); }