Esempio n. 1
0
 /**
  * This method returns an option using the tail for the boxed object.
  *
  * @access public
  * @static
  * @param IArrayList\Type $xs                               the left operand
  * @return IOption\Type                                     the option
  */
 public static function tailOption(IArrayList\Type $xs) : IOption\Type
 {
     return $xs->__isEmpty() ? IOption\Type::none() : IOption\Type::some($xs->tail());
 }