compass/src/test/testData/gems/compass-0.13.alpha.2/lib/compass/sass_extensions/functions/lists.rb
def _compass_nth(list, place)
    assert_type list, :List
    if place.value == "first"
      list.value.first
    elsif place.value == "last"
      list.value.last
    else
      list.value[place.value - 1]
    end
  end
# Get the nth value from a list
Get the nth value from a list
Get the nth value from a list
def _compass_nth(list, place)
    assert_type list, :List
    if place.value == "first"
      list.value.first
    elsif place.value == "last"
      list.value.last
    else
      list.value[place.value - 1]
    end
  end
def _compass_nth ( list , place ) assert_type list , :List if place . value == "first" list . value . first elsif place . value == "last" list . value . last else list . value [ place . value - 1 ] end end
Get the nth value from a list
Get the nth value from a list
list
place