Prefix.skip: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/rules/suspicious/prefix.bend as Prefix Lines 151-167 of bolt@1.27.0.0/src/rules/suspicious/prefix.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/rules/suspicious/prefix.bend&start_line=151&end_line=167 import Base import bolt@1.27.0.0/src/syntax/lex.bend as Lex # the take's first argument, scanned from where the scan stands: what it # says (acc: its pieces so far, last first) and the tokens after the comma # that ends it; none when the take # closes first or the tokens run out def skip(toks: List<&2, Lex.Tok>, sk: Skip, +acc: List<&2, String>) -> Maybe<&2, Arg>: match toks: case Nil{}: None{} case Con{Lex.Tok{+k, +t, l, c}, rest}: match sk: case SComma{}: Some{Arg{String.join(List.reverse(&2, String, acc), ""), Lex.Tok{k, t, l, c} <> rest}} case SClose{}: None{} case SGo{dd}: +nx = skip.step(k, dd) skip(rest, nx, skip.piece(nx, k, t) <> acc) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.reverse https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.join https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/rules/suspicious/prefix.bend&name=Arg https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/rules/suspicious/prefix.bend&name=Skip https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/rules/suspicious/prefix.bend&name=skip.piece https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/rules/suspicious/prefix.bend&name=skip.step https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/lex.bend&name=Tok