-
Notifications
You must be signed in to change notification settings - Fork 6
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
AsReadonlyView extension method #76
Comments
Workaround 1: var view = foo.ObserveValue(x => x.Items)
.Select(x => x.GetValueOrDefault())
.AsReadOnlyView() Workaround 2: var view = foo.ObserveValue(x => x.Items)
.Select(x => (IMaybe<int[]>)x)
.AsReadOnlyView() We can add Another alternative is to generate overloads for common collection types but it will not work for immutable collections which is a common use case. |
Not doing anything with this, chances are shapes will solve it in the future. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
var view = foo.ObserveValue(x => x.Items).AsReadOnlyView();
The text was updated successfully, but these errors were encountered: