You are here

function sassy_compass___compass_list_slice in Sassy 7.3

Same name and namespace in other branches
  1. 7.2 extensions/compass/functions/lists.inc \sassy_compass___compass_list_slice()

File

sassy_compass/functions/lists.inc, line 83

Code

function sassy_compass___compass_list_slice($list, $start, $end) {
  $args = func_get_args();
  $end = array_pop($args);
  $start = array_pop($args);
  $list = sassy_compass__list($args, ',');
  return implode(',', array_slice($list, $start, $end));
}