-
Notifications
You must be signed in to change notification settings - Fork 11
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
How to get the last index #22
Comments
Hi @constgen. I think you should type cast |
But it seems to me so easy to implement outputs = {
'length': str(len(results)),
+ 'last': results[len(results) - 1],
} |
Or we can try absolutely different idea. Inverted indexes outputs._-0 # last
outputs._-1 # the second from the end
outputs._-2 # the third from the end
...others |
Agree that it is easy to implement. You don't even have to do it like |
My case is that I try to extract the full version |
Thanks to let me know. I'll add |
Can we have a new output value
outputs.last
that is equal to the latest value in the split array? Becausesteps.version.outputs.length - 1
throws a syntax errorThe text was updated successfully, but these errors were encountered: