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

Mike Rodent reopened GROOVY-8565:
---------------------------------

> Method 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` method. 
> Of course there are multiple ways of doing this... it's just that that means 
> that it's slightly less convenient to use a standard Groovy List as an 
> interesting form of queue or deque.
> `addLast` seems less necessary because you have `Iterable.plus()`... but 
> `addFirst` would be nice, it seems to me.  Or is there a Groovy idiom for 
> this already?
> 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)

Reply via email to