18 "output_type": "execute_result"
40 "output_type": "execute_result"
57 "[[2, 2], [2, 3], [2, 4], [2, 5], [3, 2], [3, 3], [3, 4], [3, 5], [4, 2], [4, 3], [4, 4], [4, 5], [5, 2], [5, 3], [5, 4], [5, 5]]"
62 "output_type": "execute_result"
66 "(2..5).to_a.product((2..5).to_a)"
79 "[4, 8, 16, 32, 9, 27, 81, 243, 16, 64, 256, 1024, 25, 125, 625, 3125]"
84 "output_type": "execute_result"
88 "(2..5).to_a.product((2..5).to_a).map {|a, b| a ** b}"
101 "#<Set: {4, 8, 16, 32, 9, 27, 81, 243, 64, 256, 1024, 25, 125, 625, 3125}>"
104 "execution_count": 6,
106 "output_type": "execute_result"
110 "Set.new((2..5).to_a.product((2..5).to_a).map {|a, b| a ** b})"
115 "execution_count": 7,
126 "execution_count": 7,
128 "output_type": "execute_result"
132 "Set.new((2..5).to_a.product((2..5).to_a).map {|a, b| a ** b}).length"
137 "execution_count": 8,
148 "execution_count": 8,
150 "output_type": "execute_result"
154 "Set.new((2..100).to_a.product((2..100).to_a).map {|a, b| a ** b}).length"
159 "execution_count": null,
169 "display_name": "Ruby 2.4.0",
174 "file_extension": ".rb",
175 "mimetype": "application/x-ruby",