xenharmonic-devs / sonic-weave

The SonicWeave DSL for manipulating musical frequencies, ratios and equal temperaments
MIT License
4 stars 4 forks source link

Implement word 'delete' #337

Closed frostburn closed 1 month ago

frostburn commented 1 month ago

Python semantics on arrays:

(* Pop the second entry in the current scale and shift subsequent entries back by one. *)
delete $[1]

Python/JS semantics on records:

const rec = {foo: 1, bar: 2}
delete rec['foo']
(* rec = {bar: 2} *)
frostburn commented 1 month ago

Let's call it del instead.