문서의 이전 판입니다!
def lazy = ['abc', 42].withDefault { 'default' } // Or .withLazyDefault {} 접근전에는 null, 접근시에는 'default' def eager = ['abc', 42].withEagerDefault { 'default' } // 접근전부터 'default' def sample = [1,2,3].withDefault { index -> // index를 이용해 값 넣기 index % 2 }