Swpick.rotated: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/swpick.bend as Swpick Lines 81-84 of cswap-bend-cli@0.1.0.0/swpick.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/swpick.bend&start_line=81&end_line=84 import Base import cswap-bend-cli@0.1.0.0/store/seq.bend as SSeq # The other slots in rotation order after `anchor`: offsets 1..n-1 of the # cyclic sequence. An unknown anchor counts as index 0, as in the reference. def rotated(+xs: List<&2, String>, +anchor: Maybe<&2, String>) -> List<&2, String>: rotated2(xs, index_of(xs, SSeq.str_or(anchor, ""), 0n)) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List 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=cswap-bend-cli@0.1.0.0/store/seq.bend&name=str_or https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/swpick.bend&name=index_of https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/swpick.bend&name=rotated2