Ruby Semua elemen dalam array sama
def all_equal?(arr)
arr.uniq.size <= 1
end
Grotesque Gharial
def all_equal?(arr)
arr.uniq.size <= 1
end