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
java> List.of(1,1,2,2,1,1).span(x -> x == 1)
(List(1, 1), List(2, 2))
// It should (List(1, 1), List(2, 2, 1, 1)) The list is simply truncated here
java> List.of(1,1,2,2,4,4).span(x -> x == 1)
(List(1, 1), List(2, 2, 4, 4))
It seems it is using map behind the scene.
I am using version 2.0.2
The text was updated successfully, but these errors were encountered:
java> List.of(1,1,2,2,1,1).span(x -> x == 1)
(List(1, 1), List(2, 2))
// It should (List(1, 1), List(2, 2, 1, 1)) The list is simply truncated here
java> List.of(1,1,2,2,4,4).span(x -> x == 1)
(List(1, 1), List(2, 2, 4, 4))
It seems it is using map behind the scene.
I am using version 2.0.2
The text was updated successfully, but these errors were encountered: