groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Rodent (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (GROOVY-8565) Methods from java.util.Deque to be added to Groovy List
Date Thu, 03 May 2018 06:36:00 GMT

     [ https://issues.apache.org/jira/browse/GROOVY-8565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mike Rodent closed GROOVY-8565.
-------------------------------
    Resolution: Workaround

Ah... just seen Iterable.drop() and Iterable.take()... Groovy.

> Methods from java.util.Deque to be added to Groovy List
> -------------------------------------------------------
>
>                 Key: GROOVY-8565
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8565
>             Project: Groovy
>          Issue Type: New Feature
>            Reporter: Mike Rodent
>            Priority: Minor
>
> I was surprised to find that List in the GDK hasn't added `addFirst` or `addLast` methods. 
Of course there are no doubt multiple ways of doing this... it's just that that means you
can't use a standard Groovy List as an interesting form of queue or deque.
> java.util.Deque has some other interesting methods which one might want to think about
too: offerXXX, peekXXX, getXXX.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message