コード例 #1
0
        public void testRest()
        {
            var numbers = O.seq(10);

            AreEqual(Objects.second(numbers), O.first(O.rest(numbers)));
            AreEqual(Objects.nth(numbers, 3), O.second(O.rest(numbers)));
        }
コード例 #2
0
 public void testReverse()
 {
     AreEqual(O.list(4, 3, 2, 1), O.list(O.reverse(Objects.list(1, 2, 3, 4))));
     AreEqual(O.list(O.reverse(O.reverse(Objects.seq(15)))), O.list(O.seq(15)));
 }