/** * Returns the nth value ofthe $list * * @param Literals\SassList $list - the list to get from * @param Literals\Number $n - the value to get * @return mixed */ public static function nth($list, $n) { Literals\Literal::assertType($n, 'Number'); if ($list instanceof Literals\SassString) { $list = new Literals\SassList($list->toString()); } return $list->nth($n->value); }