Method: Polars::Array#==

Defined in:
lib/polars/data_types.rb

#==(other) ⇒ Object



499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
# File 'lib/polars/data_types.rb', line 499

def ==(other)
  if other.eql?(Array)
    true
  elsif other.is_a?(Array)
    if @shape != other.shape
      false
    elsif @inner.nil? || other.inner.nil?
      true
    else
      @inner == other.inner
    end
  else
    false
  end
end