[SR-9923] Misleading subscript in LazySequence of Array #52329
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
standard library
Area: Standard library umbrella
Attachment: Download
Additional Detail from JIRA
md5: 97b354c0b29f50e48e0912d32ebeb487
Issue Description:
There are bug in LazySequence.
When I test LazySequence with subscript, I got some unexpected results.
I expected that the result of print(lazyArrayElement[2]) is 20 like print(filterdArrayElement[2]). But it print 8.
Is this Bug? or right? I think this is wrong.
The text was updated successfully, but these errors were encountered: