A
Adam Akhtar
If you have an array which contains a mixture of say intergers and
nested arrays, how can you determine whether an element is an array or
not
ie in psedo code
array.each do |x|
if x == Array
do something
end
whats the corect way to write the if statement?
Thanks
Adam.
nested arrays, how can you determine whether an element is an array or
not
ie in psedo code
array.each do |x|
if x == Array
do something
end
whats the corect way to write the if statement?
Thanks
Adam.