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

Immutable Array #16

Closed
mxswd opened this issue Jun 8, 2014 · 4 comments
Closed

Immutable Array #16

mxswd opened this issue Jun 8, 2014 · 4 comments

Comments

@mxswd
Copy link
Contributor

mxswd commented Jun 8, 2014

An array (with array syntax) with the same functions as Array, except all the functions return new arrays.

@tLewisII
Copy link
Contributor

tLewisII commented Jun 9, 2014

I have an immutable array going over here, and was planning on doing an immutable Dict plus other structures as well. Would you want these included in this Repo, or keep a separate one for just Data structures such as Array, Dict, Set etc?

@mxswd
Copy link
Contributor Author

mxswd commented Jun 9, 2014

I would love to have them in this project. Immutable data types are a core need for functional programming. The benefit of doing so, is any operators or protocols we implement on them (map, leftmap, rightmap, etc.) will always be on the same version and compatible with the data types.

@pthariensflame
Copy link
Member

Now that Swift's arrays have full value semantics, can't we just provide those functions as extensions on them?

@tLewisII
Copy link
Contributor

@pthariensflame That is what I was thinking myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants