Skip to content

Instantly share code, notes, and snippets.

@daveray
Created October 17, 2011 23:39
Show Gist options
  • Save daveray/1294207 to your computer and use it in GitHub Desktop.
Save daveray/1294207 to your computer and use it in GitHub Desktop.
jruby_equals
[511,0] familiar [master]$ jirb -r familiar -I lib
irb(main):001:0> x = [[1, 2, 3], {"hi" => "bye", :foo => [4, 5, 6]}].to_clojure
=> [[1 2 3] {"hi" "bye", :foo [4 5 6]}]
irb(main):002:0> y = [[1, 2, 3], {"hi" => "bye", :foo => [4, 5, 6]}].to_clojure
=> [[1 2 3] {"hi" "bye", :foo [4 5 6]}]
irb(main):003:0> x == y
=> nil
irb(main):004:0> x.equals y
=> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment