Murat Kasimov 🎲

      • More about me
      • Я ☞ Language (β)

    Backlinks

    • Я ☞ Primitives
    • Я ☞ Primitives ☞ Scrolling List
    • Я ☞ Primitives ☞ Shafted List
    • Я ☞ Primitives ☞ Sliding List
    • Я ☞ Snippets ☞ Merge variations of list data structures

    Я ☞ Primitives ☞ Shafted List

    Aug 28, 20251 min read

    Variation of a List that contains two lists inside - it serves in Scrolling List as context around focused value.

    The easiest way to define Shafted List is to use ya-literal package:

    [[1,2],[3,4,5]] `yi` is @(Shafted List Integer)

    You can merge Shafted List into List, Nonempty List:

    [[1,2],[3,4]] `lu` [5,6,7] `yi` Merge @(Shafted List) @List `ho` to @List
    `q__` [1,2,3,4,5,6,7]

    • GitHub
    • Twitter
    • Linkedin
    • Patreon
    • Instagram
    • Steam
    • Facebook