You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The List class always seems to round non-integer indices down, while OrderedMap.entrySeq() seems to return undefined if the index isn't an exact representation of an integer. I haven't investigated other implementations to see if they differ. I'm not sure which behavior is better, but either way I'd expect them to be consistent.
I do not have the implementation in mind right now, but it's probably because a Map is key/value, so the key is strict, while a List accessor is numbered indexed, so 0.1 is converted to 0.
If something should be made, then probably the List should either return undefined or throw an error (but immutable does not really throw errors).
For the record : do you use Typescript? And if so, does it report an error?
The
List
class always seems to round non-integer indices down, whileOrderedMap.entrySeq()
seems to returnundefined
if the index isn't an exact representation of an integer. I haven't investigated other implementations to see if they differ. I'm not sure which behavior is better, but either way I'd expect them to be consistent.The text was updated successfully, but these errors were encountered: