Gistlib Logo

gistlib

other ruby categories

error-fixing code snippets in ruby

fix it: `series = struct.new(:string) { def slices(n) = string.each_char.each_cons(n).map(&:join) if n > string.length }` in ruby

gistlibby LogSnag