Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Snippet Start
- set = %w(Logan Paul is an idiot)
- permutator = set.permutation 3
- 3.times {
- permutator.next # => ["Logan", "Paul", "is"], ["Logan", "Paul", "an"], ["Logan", "Paul", "idiot"]
- }
- # Snippet End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement