Permalink
Browse files

Add zip and index functions to Sass::Script::Functions Overview, edit…

… function descriptions for clarity.

See issue #676
  • Loading branch information...
robwierzbowski committed Mar 22, 2013
1 parent b063d1f commit 58122b2fbea86dc7f366870e091ac3542126f73a
Showing with 10 additions and 4 deletions.
  1. +10 −4 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

0 comments on commit 58122b2

Please sign in to comment.