R
Robert Scheer
Hi.
I am trying to understand how to use the Array.TakeWhile operator. In
my tests below, the first Array is filled but the second one is not:
Dim arTemp() As Integer = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
Dim first() As Integer = arTemp.TakeWhile(Function(i) i < 5).ToArray
Dim second() As Integer = arTemp.TakeWhile(Function(i) i > 5).ToArray
Am I missing something?
Regards,
Robert
I am trying to understand how to use the Array.TakeWhile operator. In
my tests below, the first Array is filled but the second one is not:
Dim arTemp() As Integer = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
Dim first() As Integer = arTemp.TakeWhile(Function(i) i < 5).ToArray
Dim second() As Integer = arTemp.TakeWhile(Function(i) i > 5).ToArray
Am I missing something?
Regards,
Robert