-
-
Notifications
You must be signed in to change notification settings - Fork 104
Add types for indexes-of and indexes-where.
#1215
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
Conversation
|
I would say I'll take another look at the types for |
|
I think that For example, I want to implement a generic function for finding the length of a data structure: Although that |
|
That seems a valid point. Note that in your example only vector and list are containers. Since length has been assumed to have a polymorhic type, for back -compatibility, I think we should keept it that way. |
|
I also feel that And it won't be a big problem for me to change the code back if that day comes. I agree to keep the current type of |
indexes-of and indexes-where, and modify the type of length.indexes-of and indexes-where.
|
@capfredf are you ok with this now? |
|
lgtm |
lengthjust returns the length of a list, it should have nothing to do with the type of the list.