dotfiles/.emacs.d/snippets/ruby-mode/red

5 lines
115 B
Plaintext

#name : reduce(...) { |...| ... }
#group : collections
# --
reduce(${1:0}) { |${2:accumulator}, ${3:element}| $0 }