Vector and hash table modifiers that return vectors and hash tables? #542
ornamentist
started this conversation in
Ideas and Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Coalton standard library provides vector and hash table data structures. These data structures are equipped with constructor functions (e.g.
with-capacity
), query function (e.g.head
) and modifiers (e.g.push!
).I think the modifier functions would be more ergonomic in a FP environment if they returned a new vector or hashtable rather than modifying the argument in place? I can see this could lead to:
How are other Coalton developers approaching this issue?
Beta Was this translation helpful? Give feedback.
All reactions