Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Solution to Lambdaheads 2012-01-09 challenge
str = [%w(YYYY MM DD), %w(YY MM DD)].map do |ss|
( { |n| ss.permutation(n).to_a }
puts Regexp.union(str)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.