def after_last.go

bend-lint-api@0.2.0.0 · shared/strings.bend:70

import bend-lint-api@0.2.0.0/shared/strings.bend as Strings
import Base

70def after_last.go(s: String, +sep: Char, seg: String) -> String:
71  match s:
72    case SNil{}:
73      String.reverse(seg)
74    case SCon{+c, rest}:
75      after_last.go(rest, sep, Bool.pick(String, Char.is_eq(c, sep), "", SCon{c, seg}))

Uses (5)

Used by (1)