array-like structures #267
scott-griffiths
started this conversation in
Ideas
Replies: 1 comment
-
Done in version 4.1. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The array module allows "Efficient arrays of numeric values" but is restricted to about a dozen types. We could make a generalised version of this.
could behave in the same way as
but we can also do lots of fun stuff:
basically anything that has a fixed length.
Other methods to implement would be those mirroring the array module:
And there are a few extra that need considering:
Also want conversion to and from the other bitstring types:
I think I'd also be in favour of allowing an integer to make a zeroed Array
I feel that the
Array
elements should be mutable to mirror thearray
behaviour. So in practice this would be a wrapper around aBitArray
object?Beta Was this translation helpful? Give feedback.
All reactions