Skip to content

Commit

Permalink
Àdd comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ediblecode committed Dec 8, 2016
1 parent eac6bf0 commit b17789a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/stylesheets/helpers/_helpers-lists.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
/// @group helpers
////

// See http://hugogiraudel.com/2013/08/08/advanced-sass-list-functions/#selecting-values-from-list
/// Shortcut for getting the first item from a list
/// @link http://hugogiraudel.com/2013/08/08/advanced-sass-list-functions/#selecting-values-from-list
@function first($list) {
@return nth($list, 1);
}

/// Shortcut for getting the last item from a list
/// @link http://hugogiraudel.com/2013/08/08/advanced-sass-list-functions/#selecting-values-from-list
@function last($list) {
@return nth($list, length($list));
}

///
/// Returns last index of `$value` in `$list`.
///
/// @ignore Documentation: http://at-import.github.io/SassyLists/documentation/#function-sl-last-index
Expand Down

0 comments on commit b17789a

Please sign in to comment.