Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: sass/sass
...
head fork: sass/sass
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Commits on Mar 22, 2013
@robwierzbowski robwierzbowski Add zip and index functions to Sass::Script::Functions Overview, edit…
… function descriptions for clarity.

See issue #676
58122b2
@nex3 nex3 Merge pull request #696 from robwierzbowski/zip-index-docs
Added zip and index functions to Sass::Script::Functions Overview
13e162c
Showing with 10 additions and 4 deletions.
  1. +10 −4 lib/sass/script/functions.rb
View
14 lib/sass/script/functions.rb
@@ -147,6 +147,12 @@ module Sass::Script
# \{#append append($list1, $val, \[$separator\])}
# : Appends a single value onto the end of a list.
#
+ # \{#zip zip($list1, $list2, ...)}
+ # : Combines several lists into a single multidimensional list.
+ #
+ # \{#index index($list, $value)}
+ # : Returns the position of a value within a list, or false.
+ #
# ## Introspection Functions
#
# \{#type_of type-of($value)}
@@ -1358,8 +1364,8 @@ def append(list, val, separator = Sass::Script::String.new("auto"))
declare :append, [:list, :val]
declare :append, [:list, :val, :separator]
- # Combines several lists into a single comma separated list
- # space separated lists.
+ # Combines several lists into a single comma separated list, where the nth
+ # value is a space separated list of the source lists' nth values.
#
# The length of the resulting list is the length of the
# shortest list.
@@ -1384,8 +1390,8 @@ def zip(*lists)
declare :zip, [], :var_args => true
- # Returns the position of the given value within the given
- # list. If not found, returns false.
+ # Returns the position of a value within a list. If not found, returns
+ # false.
#
# @example
# index(1px solid red, solid) => 2

No commit comments for this range

Something went wrong with that request. Please try again.