Open psfinaki opened 3 days ago
We have 3 different behaviors currently: X.skip throws InvalidArgOutOfRange when count > n X.take throws InvalidOperation when count > n X.sample throws InvalidArg when count > n
InvalidArgOutOfRange
InvalidOperation
InvalidArg
We should unify this, updating the code along with RFCs probably.
_Originally posted by @Lanayx in https://github.com/dotnet/fsharp/pull/17277#discussion_r1653866870_
All those will be breaking changes, fwiw.
Yeah that's clear, don't expect this to be easy-breezy :shrug:
We have 3 different behaviors currently: X.skip throws
InvalidArgOutOfRange
when count > n X.take throwsInvalidOperation
when count > n X.sample throwsInvalidArg
when count > nWe should unify this, updating the code along with RFCs probably.
_Originally posted by @Lanayx in https://github.com/dotnet/fsharp/pull/17277#discussion_r1653866870_