Explain me this code | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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

26th Sep 2020, 5:19 AM
[bool left=True;]
[bool left=True;] - avatar
1 Resposta
+ 6
No Name You'll find your answers here šŸ‘‡ šŸ”øcoerce https://apidock.com/ruby/Numeric/coerce šŸ”øpack https://apidock.com/ruby/Array/pack
26th Sep 2020, 5:34 AM
Mouli
Mouli - avatar