Skip to content

Instantly share code, notes, and snippets.

@ahirschberg
Created April 2, 2015 21:39
Show Gist options
  • Select an option

  • Save ahirschberg/1c2cc364b3ede8ab972b to your computer and use it in GitHub Desktop.

Select an option

Save ahirschberg/1c2cc364b3ede8ab972b to your computer and use it in GitHub Desktop.
%w[a b c d].permutation.first(5).each {|i| p i} #=> same output as permutations_lazy1.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment