Groovy does it at map definition time thanks to withDefault method: @Test void "should assign default value to map"() { Map<String, String> letters = [:].
確定! 回上一頁