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

Extend w/fn, let to support destructuring #126

Open
holyjak opened this issue Sep 27, 2024 · 1 comment
Open

Extend w/fn, let to support destructuring #126

holyjak opened this issue Sep 27, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@holyjak
Copy link
Member

holyjak commented Sep 27, 2024

Now I must do

(w/fn [latLon]
               [(w/Part latLon 1)
                (w/Part latLon 2)])

In Wolfram, this would be {#[1],#[2]}&.

It would be lovely to be able to write

(w/fn [[lat lon]] [lat lon])

At least for vectors. Maps/Associations might be nice too, not sure how often they are used.

@holyjak holyjak added the enhancement New feature or request label Sep 27, 2024
@light-matters
Copy link
Contributor

This would indeed be lovely. I fully support making Wolfram more like Clojure!!!

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

No branches or pull requests

2 participants