Flatten spreads

Hello guys, I found a weird bug? the gif is pretty self clear about it
Also happend coming out of a multiple foreach loop

7.0 stable

bug_spreads-Application_2025.10.11-08.56.11

can you please also upload the patch?

bug_spreads.vl (13.8 KB)

Doubt it’s a bug, flatten is IEnumrable operation, so it needs to be cached… Basically when you do spread Flatten like that it converts immutable spread to mutable array, likely you need FromSequnce to convert it back to spread

If you want to compare collections with each other, use SequenceEquals instead of =. It will compare each item, which you could do yourself as well with yet another foreach.

Thanks @antokhio for the explanation… immutable and mutable are not always clear to me… but its getting there..
@gregsn thanks thats exaclty what I need! :)