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
Currently, RandomSubsetImpl receives a Func<IEnumerable<T>, (T[], int)> parameter. However, both callers use s.ToArray() for the array value and one uses array.Length as the int value. It would be better to move the .ToArray() call inside RandomSubsetImpl, and add an int? parameter that can be used to evaluate the subset length (if null, then set to array.Length).
The text was updated successfully, but these errors were encountered:
Currently,
RandomSubsetImpl
receives aFunc<IEnumerable<T>, (T[], int)>
parameter. However, both callers uses.ToArray()
for the array value and one usesarray.Length
as the int value. It would be better to move the.ToArray()
call insideRandomSubsetImpl
, and add anint?
parameter that can be used to evaluate the subset length (ifnull
, then set toarray.Length
).The text was updated successfully, but these errors were encountered: