Ruby | Array to_s()-Funktion
Array#to_s() : to_s() ist eine Methode der Array-Klasse, die ein eigenes Array zurückgibt.
Syntax: Array.to_s()Parameter: ArrayRückgabe: self-Array
Beispiel 1 :
# Ruby code for to_s() method
# declaring array
a = [18, 22, 33, nil, 5, 6]
# declaring array
b = [1, 4, 1, 1, 88, 9]
# declaring array
c = [18, 22, 50, 6]
# to_s method example
puts "to_s() method form : #{a.to_s()}\n\n"
puts "to_s()....