+ 1
Explain me this code
print 1.5.coerce(2.5).to_a What does coerce do here ?? puts [65,66,67].pack('ccc').downcase here what is pack and ccc doing? Please explain
1 Réponse
+ 6
No Name
You'll find your answers here 👇
🔸coerce
https://apidock.com/ruby/Numeric/coerce
🔸pack
https://apidock.com/ruby/Array/pack