daily pastebin goal
26%
SHARE
TWEET

Untitled

a guest Jan 18th, 2018 56 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. def l_spread (num_accents, size)
  2.   (spread num_accents, size)
  3.   .chunk_while { |i,j| !j }
  4.   .map { |ary| ary.map { |a| if a then ary.length else 0 end } }
  5.   .flatten
  6.   .map { |i| [ i != 0, i ] }
  7.   .ring
  8. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top