Groovy as List Question -


i ran across bit of code , me seems not needed there reason following

def answers = [] list 

instead of

def answers = [] 

in groovy thought [] empty list there no need have list

no, there no difference, both create arraylist , list (java.util.list) interface anyway.


Comments

Popular posts from this blog

haskell - Using filter on an item in a list? -

c# - When does PreApplicationStartMethod actually get triggered to run? -

c# - Binding attached property to IEnumerable -