def trailing

bolt@1.27.0.0 · src/rules/style/space.bend:24

import bolt@1.27.0.0/src/rules/style/space.bend as Space
import Base

24# does the line end in whitespace?
25def trailing(cs: List<&2, Char>) -> Bool:
26  match cs:
27    case Nil{}:
28      False{}
29    case Con{c, Nil{}}:
30      Char.is_space(c)
31    case Con{c, t}:
32      trailing(t)

Uses (4)

Used by (1)