• Kurse
  • Code Compiler
  • Diskutieren
  • Preise
  • Teams
Menu
+ 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

rubymethodpackcoerce
26th Sep 2020, 5:19 AM
[bool left=True;]
[bool left=True;] - avatar
1 Antwort
+ 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
Minho
Minho - avatar

Häufig solche Fragen?

Effizienter lernen, kostenlos:

  • Einführung in Python

    7.1M Lernende

  • Einführung in Java

    4.7M Lernende

  • Einführung in C

    1.5M Lernende

  • Einführung in HTML

    7.5M Lernende

Alle Kurse anzeigen
Heute heiß
Hi help me I am new
2 Votes
My codebits section is full of deleted codes
12 Votes
Why are there like 10 community-made lessons?
0 Votes
How do I solve all test cases for popsicles problem?https://www.sololearn.com/coach/3?ref=app
0 Votes
Why so many mathematical questions in challenges?
0 Votes
Where did mess up....
1 Votes
Where can I learn c#
0 Votes
I have an error in a problem and I don't know what the correct answer is
1 Votes
best language if i want to learn about AI
0 Votes
DBA for finalist university student projects
0 Votes