You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Mike Rodent (JIRA)" <ji...@apache.org> on 2018/05/03 06:40:00 UTC

[jira] [Issue Comment Deleted] (GROOVY-8565) Methods from java.util.Deque to be added to Groovy List

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

Mike Rodent updated GROOVY-8565:
--------------------------------
    Comment: was deleted

(was: 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)