-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NonEmpty from C# #45
Comments
The problem, btw, is that NonEmpty<,> inherits from IEnumerable (as it should), but LINQ already defines a bunch of partial functions for IEnumerables, and you can't make them go away unless you just don't add |
I think this involes:
|
we could also make a new single case union or other struct for each seq type, e.g., |
Perhaps since C# really would only need a single non empty type, we could just keep it in the same namespace and make
Is it an issue that this type would have no relation to the F# NonEmpty types? I'm thinking as long as we have a way to convert from NonEmptySeq<'a> to NonEmptyCollection<'T> and vice versa, we'd be okay... |
Currently, it's prohibitively difficult to use any NonEmpty collections from C#. Do we have a plan to address this? This issue isn't really proposing anything so much as opening for discussion.
The text was updated successfully, but these errors were encountered: