Skip to content

Instantly share code, notes, and snippets.

@joelchretien
joelchretien / linq-vs-ruby-enumerable-vs-activerecord-relation.md
Last active November 4, 2018 01:13
Compare .NET Linq vs. Ruby Enumerable vs. ActiveRecord Relation

All

Linq

Console.WriteLine(new[] { 1, 2, 3 }.All(x => x > 2)); //=> false

Enumerable

# => false

ActiveRecord

# => false