pounce-lang / js-core

Core elements of a Pounce (pounce-lang) interpreter, parser, preprocessor written in TypeScript. Pounce types are being developed (a preprocess type checker is in beta)
https://pounce-lang-show-case.netlify.app/
6 stars 0 forks source link

Allow ... in de-structuring for crouch and pounce #17

Open nmorse opened 1 year ago

nmorse commented 1 year ago

examples [1 2 3 4] [head... last] [head last] crouch --> [1 2 3] 4 [1 2 3 4] [first tail...] [first tail] crouch --> 1 [2 3 4] [1 2 3 4] [head middle... last] [head middle last] crouch --> 1 [2 3] 4 [1 2 3 4] [first second rest...] [first second rest] crouch --> 1 2 [3 4] [1 2 3 4] [head... next2last last] [head next2last last] crouch --> [1 2] 3 4