Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement word 'delete' #337

Closed
frostburn opened this issue Jun 3, 2024 · 1 comment · Fixed by #339
Closed

Implement word 'delete' #337

frostburn opened this issue Jun 3, 2024 · 1 comment · Fixed by #339
Labels
enhancement New feature or request

Comments

@frostburn
Copy link
Member

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 frostburn added the enhancement New feature or request label Jun 3, 2024
@frostburn
Copy link
Member Author

Let's call it del instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant