collections.NewScratch
Syntax
collections.NewScratch ⟼ Scratch
Alias
newScratch
{{ $scratch := newScratch }}
{{ $scratch.Add "b" 2 }}
{{ $scratch.Add "b" 2 }}
{{ $scratch.Get "b" }} → 4
collections.NewScratch ⟼ Scratch
newScratch
{{ $scratch := newScratch }}
{{ $scratch.Add "b" 2 }}
{{ $scratch.Add "b" 2 }}
{{ $scratch.Get "b" }} → 4