#!/usr/bin/ruby

#
## http://rosettacode.org/wiki/Compare_a_list_of_strings
#

var arr = [1,2,3,4,5];

say (1..arr.end -> all{ arr[0] == arr[_] });  # All equal
say (1..arr.end -> all{ arr[_-1] < arr[_] }); # Strictly ascending
