You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Stephen Mallette (Jira)" <ji...@apache.org> on 2021/02/04 20:39:00 UTC
[jira] [Created] (TINKERPOP-2521) Expand range() to allow other
negative operations
Stephen Mallette created TINKERPOP-2521:
-------------------------------------------
Summary: Expand range() to allow other negative operations
Key: TINKERPOP-2521
URL: https://issues.apache.org/jira/browse/TINKERPOP-2521
Project: TinkerPop
Issue Type: Improvement
Components: process
Affects Versions: 3.4.10
Reporter: Stephen Mallette
We currently allow {{range(0,-1)}} where the "-1" represents all items through the end of the stream. If we allowed for negatives like say "-2" it would mean all items through the end of the stream except for the last and that would provide "but last" sorts of semantics which is helpful in cases like this where trickery is needed to filter away the "last" item in the stream:
https://stackoverflow.com/a/66048029
--
This message was sent by Atlassian Jira
(v8.3.4#803005)