// Returns next indexed key based on passed index // ------------------------------------------------------------------------------- // @param $index [integer] : index // ------------------------------------------------------------------------------- // @return [string] | null @function next-index($index) { @if $index != (length(map-fetch($flint, "config")) - 1) { @each $key in nth(map-get($flint, "config"), $index + 1) { @return $key; } } @else { @return null; } }