Frame.cut.at: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/frame.bend as Frame Lines 35-40 of cswap-bend-cli@0.1.0.0/frame.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/frame.bend&start_line=35&end_line=40 import Base def cut.at(m: Maybe<&2, Nat>, +s: String) -> Maybe<&2, Cut>: match m: case None{}: None{} case Some{+n}: Some{Cut{String.take(s, n), String.drop(s, Nat.add(n, 1n))}} Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.drop https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.take https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/frame.bend&name=Cut