Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added zip and index functions to Sass::Script::Functions Overview #696

Merged
merged 1 commit into from Mar 22, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 10 additions & 4 deletions lib/sass/script/functions.rb
Expand Up @@ -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)}
Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand Down