This repository has been archived by the owner on Mar 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Enumerable.Flatten should have a strong type instead of object. #3
Labels
Comments
I don't think the suggestion can work (correct me if I'm wrong). The conceptual signature to me appears to be
(of course this signature wouldn't really work) Perhaps this signature would be better:
|
I'm sorry. I made a type-o in my suggestion. You're correct in that Flatten takes in an array of an undetermined depth of arrays. The incoming parameter should be IEnumerable<object> like you have it, but the return parameter should be LinqJsEnumerable<T> in order to support chaining. Here's an example:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This is the current code:
It would be chainable and more usefult to add <T> instead of defaulting to object.
The text was updated successfully, but these errors were encountered: