The Crystal Programming Language Forum

What Happen: tell you what happen when x changes to y

Hi, everyone. :grinning:
I just released the first version of what_happen.
It is just for fun to see what methods can be invoked from x to y.

require "what_happen"

puts what_happen(from: [1, 2, 3], to: 1)                # => ["first", "first?", "min", "min?"]
puts what_happen(from: "hello_world", to: "HelloWorld") # => ["camelcase"]
5 Likes