-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add $isFirst
, $isLast
#24
Comments
What exactly would $atIndex mean? |
@cervengoc A truthy/falsy test e.g. |
Well I don't know. At first glance it seems to me that any solution which depends on individual index values other than first or last leads to unavoidable index maintenance in one way or another. And on the other hand, personally I don't like the $atIndex function, I think it's not usable too well and a bit counter-intuitive (one would expect it to be an observable like all others). But that's really kind of a personal preference. Anyway, please see my comment at the original topic too. |
@cervengoc Yeah, I'm with you. I think it'll just be $isFirst and $isLast |
I have just come across a need for
They should all still be O(1) ...or not? |
@AdamWillden They should all be O(1); the |
Possibly coming from ignorance, but are |
Thanks @IanYates – Yes,
I'm not totally averse to adding |
No problem @brianmhunt. Just floating the idea but what you say makes sense. I think it'd be nicer as an opaque |
@AdamWillden Cool. :) |
These can theoretically all be O(1).
The text was updated successfully, but these errors were encountered: