Tries to return the first element of a sequence.

// 1 Enumerable.create(1, 2, 3) .firstOrDefault('MK'); // 22 Enumerable.create(11, 22, 33) .firstOrDefault(x > 11', 'MK'); // "TM" Enumerable.create(111, 222, 333) .firstOrDefault('x => x > 333', 'TM'); // "YS" Enumerable.create() .firstOrDefault('YS');