SassyLists 2.2.4 → 2.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +2 -1
  3. data/README.md +4 -4
  4. data/lib/SassyLists.rb +2 -2
  5. data/stylesheets/SassyLists/_chunk.scss +19 -19
  6. data/stylesheets/SassyLists/_comma-list.scss +12 -12
  7. data/stylesheets/SassyLists/_contain.scss +23 -23
  8. data/stylesheets/SassyLists/_count-values.scss +14 -14
  9. data/stylesheets/SassyLists/_debug.scss +26 -26
  10. data/stylesheets/SassyLists/_every.scss +19 -19
  11. data/stylesheets/SassyLists/_explode.scss +23 -23
  12. data/stylesheets/SassyLists/_first.scss +29 -29
  13. data/stylesheets/SassyLists/_flatten.scss +20 -20
  14. data/stylesheets/SassyLists/_has-multiple-values.scss +17 -17
  15. data/stylesheets/SassyLists/_has-values.scss +17 -17
  16. data/stylesheets/SassyLists/_insert-nth.scss +27 -27
  17. data/stylesheets/SassyLists/_intersection.scss +17 -17
  18. data/stylesheets/SassyLists/_is-empty.scss +21 -21
  19. data/stylesheets/SassyLists/_is-single.scss +21 -21
  20. data/stylesheets/SassyLists/_is-symmetrical.scss +25 -25
  21. data/stylesheets/SassyLists/_last-index.scss +18 -18
  22. data/stylesheets/SassyLists/_last.scss +26 -26
  23. data/stylesheets/SassyLists/_loop.scss +29 -29
  24. data/stylesheets/SassyLists/_prepend.scss +17 -17
  25. data/stylesheets/SassyLists/_purge.scss +19 -19
  26. data/stylesheets/SassyLists/_random-value.scss +28 -28
  27. data/stylesheets/SassyLists/_range.scss +26 -26
  28. data/stylesheets/SassyLists/_remove-duplicates.scss +20 -20
  29. data/stylesheets/SassyLists/_remove-nth.scss +25 -25
  30. data/stylesheets/SassyLists/_remove.scss +21 -21
  31. data/stylesheets/SassyLists/_replace-nth.scss +25 -25
  32. data/stylesheets/SassyLists/_replace.scss +24 -24
  33. data/stylesheets/SassyLists/_reverse.scss +20 -20
  34. data/stylesheets/SassyLists/_shuffle.scss +19 -19
  35. data/stylesheets/SassyLists/_slice.scss +34 -34
  36. data/stylesheets/SassyLists/_some.scss +23 -23
  37. data/stylesheets/SassyLists/_sort.scss +26 -26
  38. data/stylesheets/SassyLists/_sum.scss +28 -28
  39. data/stylesheets/SassyLists/_tail.scss +20 -20
  40. data/stylesheets/SassyLists/_to-list.scss +18 -18
  41. data/stylesheets/SassyLists/_to-map.scss +32 -32
  42. data/stylesheets/SassyLists/_to-string.scss +26 -26
  43. data/stylesheets/SassyLists/_union.scss +20 -20
  44. data/stylesheets/SassyLists/_walk.scss +21 -21
  45. data/stylesheets/SassyLists/helpers/_is-number.scss +10 -10
  46. data/stylesheets/SassyLists/helpers/_missing-dependencies.scss +10 -10
  47. data/stylesheets/SassyLists/helpers/_str-compare.scss +12 -12
  48. data/stylesheets/SassyLists/helpers/_true.scss +10 -10
  49. data/stylesheets/_SassyLists.scss +2 -2
  50. metadata +10 -10
@@ -1,18 +1,18 @@
1
- /**
2
- * Turns multidimensional `$list` into a one-level list.
3
- *
4
- * @ignore Documentation: http://sassylists.com/documentation.html#flatten
5
- *
6
- * @param {List} $list - list to flatten
7
- *
8
- * @requires sl-has-multiple-values
9
- *
10
- * @example
11
- * sl-flatten(a b c, d e f, g h i)
12
- * // a b c d e f g h i
13
- *
14
- * @return {List}
15
- */
1
+ ///
2
+ /// Turns multidimensional `$list` into a one-level list.
3
+ ///
4
+ /// @ignore Documentation: http://at-import.github.io/SassyLists/documentation/#function-sl-flatten
5
+ ///
6
+ /// @param {List} $list - list to flatten
7
+ ///
8
+ /// @requires sl-has-multiple-values
9
+ ///
10
+ /// @example
11
+ /// sl-flatten(a b c, d e f, g h i)
12
+ /// // a b c d e f g h i
13
+ ///
14
+ /// @return {List}
15
+ ///
16
16
 
17
17
  @function sl-flatten($list) {
18
18
  @if sl-missing-dependencies(sl-has-multiple-values) == true { @return null; }
@@ -36,11 +36,11 @@
36
36
  @return $result;
37
37
  }
38
38
 
39
- /**
40
- * @requires sl-flatten
41
- * @alias sl-flatten
42
- */
39
+ ///
40
+ /// @requires sl-flatten
41
+ /// @alias sl-flatten
42
+ ///
43
43
 
44
44
  @function sl-unfold($list) {
45
45
  @return sl-flatten($list);
46
- }
46
+ }
@@ -1,20 +1,20 @@
1
- /**
2
- * Tests whether `$list` has at least 2 values.
3
- *
4
- * @ignore Documentation: http://sassylists.com/documentation.html#sl-has-multiple-values
5
- *
6
- * @param {List} $list - list to run test against
7
- *
8
- * @example
9
- * sl-has-multiple-values(a)
10
- * // false
11
- *
12
- * @example
13
- * sl-has-multiple-values(a b)
14
- * // true
15
- *
16
- * @return {Bool}
17
- */
1
+ ///
2
+ /// Tests whether `$list` has at least 2 values.
3
+ ///
4
+ /// @ignore Documentation: http://at-import.github.io/SassyLists/documentation/#function-sl-has-multiple-values
5
+ ///
6
+ /// @param {List} $list - list to run test against
7
+ ///
8
+ /// @example
9
+ /// sl-has-multiple-values(a)
10
+ /// // false
11
+ ///
12
+ /// @example
13
+ /// sl-has-multiple-values(a b)
14
+ /// // true
15
+ ///
16
+ /// @return {Bool}
17
+ ///
18
18
 
19
19
  @function sl-has-multiple-values($list) {
20
20
  @return length($list) > 1;
@@ -1,20 +1,20 @@
1
- /** Tests whether `$list` is not empty.
2
- *
3
- * @ignore Documentation: http://sassylists.com/documentation.html#sl-has-values
4
- *
5
- * @param {List} $list - list to run test against
6
- *
7
- * @example
8
- * sl-has-values(a)
9
- * // true
10
- *
11
- * @example
12
- * sl-has-values(())
13
- * // false
14
- *
15
- * @return {Bool}
16
- */
1
+ /// Tests whether `$list` is not empty.
2
+ ///
3
+ /// @ignore Documentation: http://at-import.github.io/SassyLists/documentation/#function-sl-has-values
4
+ ///
5
+ /// @param {List} $list - list to run test against
6
+ ///
7
+ /// @example
8
+ /// sl-has-values(a)
9
+ /// // true
10
+ ///
11
+ /// @example
12
+ /// sl-has-values(())
13
+ /// // false
14
+ ///
15
+ /// @return {Bool}
16
+ ///
17
17
 
18
18
  @function sl-has-values($list) {
19
19
  @return length($list) > 0;
20
- }
20
+ }
@@ -1,30 +1,30 @@
1
- /** Adds `$value` at `$index` in `$list`.
2
- *
3
- * @ignore Documentation: http://sassylists.com/documentation.html#sl-insert-nth
4
- *
5
- * @requires sl-is-true
6
- *
7
- * @param {List} $list - list to update
8
- * @param {Number} $index - index to add
9
- * @param {*} $value - value to add
10
- *
11
- * @throws List index $index is not a number for `sl-insert-nth`.
12
- * @throws List index $index must be a non-zero integer for `sl-insert-nth`.
13
- *
14
- * @example
15
- * sl-insert-nth(a b c, 2, z)
16
- * // a z b c
17
- *
18
- * @example
19
- * sl-insert-nth(a b c, 42, z)
20
- * // a b c z
21
- *
22
- * @example
23
- * sl-insert-nth(a b c, -42, z)
24
- * // null
25
- *
26
- * @return {List | Null}
27
- */
1
+ /// Adds `$value` at `$index` in `$list`.
2
+ ///
3
+ /// @ignore Documentation: http://at-import.github.io/SassyLists/documentation/#function-sl-insert-nth
4
+ ///
5
+ /// @requires sl-is-true
6
+ ///
7
+ /// @param {List} $list - list to update
8
+ /// @param {Number} $index - index to add
9
+ /// @param {*} $value - value to add
10
+ ///
11
+ /// @throws List index $index is not a number for `sl-insert-nth`.
12
+ /// @throws List index $index must be a non-zero integer for `sl-insert-nth`.
13
+ ///
14
+ /// @example
15
+ /// sl-insert-nth(a b c, 2, z)
16
+ /// // a z b c
17
+ ///
18
+ /// @example
19
+ /// sl-insert-nth(a b c, 42, z)
20
+ /// // a b c z
21
+ ///
22
+ /// @example
23
+ /// sl-insert-nth(a b c, -42, z)
24
+ /// // null
25
+ ///
26
+ /// @return {List | Null}
27
+ ///
28
28
 
29
29
  @function sl-insert-nth($list, $index, $value) {
30
30
  @if sl-missing-dependencies(sl-is-true) == true { @return null; }
@@ -1,20 +1,20 @@
1
- /**
2
- * Returns a list of shared value from `$list` and `$lists` minus duplicates.
3
- *
4
- * @ignore Documentation: http://sassylists.com/documentation.html#sl-intersection
5
- *
6
- * @requires sl-remove-duplicates
7
- * @requires sl-to-list
8
- *
9
- * @param {List} $list - first list
10
- * @param {ArgList} $lists - other lists
11
- *
12
- * @example
13
- * sl-intersection(a b c, b e d, a c b)
14
- * // b
15
- *
16
- * @return {List}
17
- */
1
+ ///
2
+ /// Returns a list of shared value from `$list` and `$lists` minus duplicates.
3
+ ///
4
+ /// @ignore Documentation: http://at-import.github.io/SassyLists/documentation/#function-sl-intersection
5
+ ///
6
+ /// @requires sl-remove-duplicates
7
+ /// @requires sl-to-list
8
+ ///
9
+ /// @param {List} $list - first list
10
+ /// @param {ArgList} $lists - other lists
11
+ ///
12
+ /// @example
13
+ /// sl-intersection(a b c, b e d, a c b)
14
+ /// // b
15
+ ///
16
+ /// @return {List}
17
+ ///
18
18
 
19
19
  @function sl-intersection($list, $lists...) {
20
20
  @if sl-missing-dependencies(sl-remove-duplicates) == true { @return null; }
@@ -1,29 +1,29 @@
1
- /**
2
- * Tests whether `$list` is empty.
3
- *
4
- * @ignore Documentation: http://sassylists.com/documentation.html#sl-is-empty
5
- *
6
- * @param {List} $list - list to run test against
7
- *
8
- * @example
9
- * sl-is-empty(())
10
- * // true
11
- *
12
- * @example
13
- * sl-is-empty(a)
14
- * // false
15
- *
16
- * @return {Bool}
17
- */
1
+ ///
2
+ /// Tests whether `$list` is empty.
3
+ ///
4
+ /// @ignore Documentation: http://at-import.github.io/SassyLists/documentation/#function-sl-is-empty
5
+ ///
6
+ /// @param {List} $list - list to run test against
7
+ ///
8
+ /// @example
9
+ /// sl-is-empty(())
10
+ /// // true
11
+ ///
12
+ /// @example
13
+ /// sl-is-empty(a)
14
+ /// // false
15
+ ///
16
+ /// @return {Bool}
17
+ ///
18
18
 
19
19
  @function sl-is-empty($list) {
20
20
  @return length($list) == 0;
21
21
  }
22
22
 
23
- /**
24
- * @requires sl-is-empty
25
- * @alias sl-is-empty
26
- */
23
+ ///
24
+ /// @requires sl-is-empty
25
+ /// @alias sl-is-empty
26
+ ///
27
27
 
28
28
  @function sl-empty($list) {
29
29
  @return sl-is-empty($list);
@@ -1,24 +1,24 @@
1
- /**
2
- * Tests whether `$list` has a single item.
3
- *
4
- * @ignore Documentation: http://sassylists.com/documentation.html#sl-is-single
5
- *
6
- * @param {List} $list - list to run test against
7
- *
8
- * @example
9
- * sl-is-single(())
10
- * // false
11
- *
12
- * @example
13
- * sl-is-single(a)
14
- * // true
15
- *
16
- * @example
17
- * sl-is-single(a b)
18
- * // false
19
- *
20
- * @return {Bool}
21
- */
1
+ ///
2
+ /// Tests whether `$list` has a single item.
3
+ ///
4
+ /// @ignore Documentation: http://at-import.github.io/SassyLists/documentation/#function-sl-is-single
5
+ ///
6
+ /// @param {List} $list - list to run test against
7
+ ///
8
+ /// @example
9
+ /// sl-is-single(())
10
+ /// // false
11
+ ///
12
+ /// @example
13
+ /// sl-is-single(a)
14
+ /// // true
15
+ ///
16
+ /// @example
17
+ /// sl-is-single(a b)
18
+ /// // false
19
+ ///
20
+ /// @return {Bool}
21
+ ///
22
22
 
23
23
  @function sl-is-single($list) {
24
24
  @return length($list) == 1;
@@ -1,23 +1,23 @@
1
- /**
2
- * Checks whether `$list` is symmetrical.
3
- *
4
- * @ignore Documentation: http://sassylists.com/documentation.html#sl-is-symmetrical
5
- *
6
- * @requires sl-reverse
7
- *
8
- * @param {List} $list - list to check
9
- *
10
- * @example
11
- * sl-is-symmetrical(a b c)
12
- * // false
13
- *
14
- *
15
- * @example
16
- * sl-is-symmetrical(a b a)
17
- * // true
18
- *
19
- * @return {Bool}
20
- */
1
+ ///
2
+ /// Checks whether `$list` is symmetrical.
3
+ ///
4
+ /// @ignore Documentation: http://at-import.github.io/SassyLists/documentation/#function-sl-is-symmetrical
5
+ ///
6
+ /// @requires sl-reverse
7
+ ///
8
+ /// @param {List} $list - list to check
9
+ ///
10
+ /// @example
11
+ /// sl-is-symmetrical(a b c)
12
+ /// // false
13
+ ///
14
+ ///
15
+ /// @example
16
+ /// sl-is-symmetrical(a b a)
17
+ /// // true
18
+ ///
19
+ /// @return {Bool}
20
+ ///
21
21
 
22
22
  @function sl-is-symmetrical($list) {
23
23
  @if sl-missing-dependencies(sl-reverse) == true { @return null; }
@@ -25,11 +25,11 @@
25
25
  @return $list == sl-reverse($list);
26
26
  }
27
27
 
28
- /**
29
- * @requires sl-is-symmetrical
30
- * @alias sl-is-symmetrical
31
- */
28
+ ///
29
+ /// @requires sl-is-symmetrical
30
+ /// @alias sl-is-symmetrical
31
+ ///
32
32
 
33
33
  @function sl-is-mirror($list) {
34
34
  @return sl-is-symmetrical($list);
35
- }
35
+ }
@@ -1,21 +1,21 @@
1
- /**
2
- * Returns last index of `$value` in `$list`.
3
- *
4
- * @ignore Documentation: http://sassylists.com/documentation.html#sl-last-index
5
- *
6
- * @param {List} $list - list to search
7
- * @param {*} $value - value to be searched for
8
- *
9
- * @example
10
- * sl-last-index(a b a, a)
11
- * // 3
12
- *
13
- * @example
14
- * sl-last-index(a b a, z)
15
- * // null
16
- *
17
- * @return {Number | Null}
18
- */
1
+ ///
2
+ /// Returns last index of `$value` in `$list`.
3
+ ///
4
+ /// @ignore Documentation: http://at-import.github.io/SassyLists/documentation/#function-sl-last-index
5
+ ///
6
+ /// @param {List} $list - list to search
7
+ /// @param {*} $value - value to be searched for
8
+ ///
9
+ /// @example
10
+ /// sl-last-index(a b a, a)
11
+ /// // 3
12
+ ///
13
+ /// @example
14
+ /// sl-last-index(a b a, z)
15
+ /// // null
16
+ ///
17
+ /// @return {Number | Null}
18
+ ///
19
19
 
20
20
  @function sl-last-index($list, $value) {
21
21
  @for $i from length($list) through 1 {
@@ -1,28 +1,28 @@
1
- /**
2
- * Returns last element of `$list`.
3
- *
4
- * @ignore Documentation: http://sassylists.com/documentation.html#sl-last
5
- *
6
- * @param {List} $list - list to retrieve last value from
7
- *
8
- * @throws Cannot find last item of empty list.
9
- *
10
- * @requires sl-is-empty
11
- *
12
- * @example
13
- * sl-last(a b c)
14
- * // c
15
- *
16
- * @example
17
- * sl-last(a)
18
- * // a
19
- *
20
- * @example
21
- * sl-last(())
22
- * // null
23
- *
24
- * @return {*}
25
- */
1
+ ///
2
+ /// Returns last element of `$list`.
3
+ ///
4
+ /// @ignore Documentation: http://at-import.github.io/SassyLists/documentation/#function-sl-last
5
+ ///
6
+ /// @param {List} $list - list to retrieve last value from
7
+ ///
8
+ /// @throws Cannot find last item of empty list.
9
+ ///
10
+ /// @requires sl-is-empty
11
+ ///
12
+ /// @example
13
+ /// sl-last(a b c)
14
+ /// // c
15
+ ///
16
+ /// @example
17
+ /// sl-last(a)
18
+ /// // a
19
+ ///
20
+ /// @example
21
+ /// sl-last(())
22
+ /// // null
23
+ ///
24
+ /// @return {*}
25
+ ///
26
26
 
27
27
  @function sl-last($list) {
28
28
  @if sl-missing-dependencies(sl-is-empty) == true { @return null; }
@@ -33,4 +33,4 @@
33
33
  }
34
34
 
35
35
  @return nth($list, -1);
36
- }
36
+ }