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 function documentation to grel array functions #369 #407

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion docs/manual/grelfunctions.md
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,12 @@ Joins the items in the array with sep, and returns it all as a string. For examp
###### uniques(a) {#uniquesa}
Returns the array with duplicates removed. Case-sensitive. For example, `[ "al", "Joe", "Bob", "Joe", "Al", "Bob" ].uniques()` returns the array [ "Joe", "al", "Al", "Bob" ].

As of OpenRefine 3.4.1, uniques() reorders the array items it returns; in 3.4 beta 644 and onwards, it preserves the original order (in this case, [ "al", "Joe", "Bob", "Al" ]).
As of OpenRefine 3.4.1, uniques() reorders the array items it returns; in 3.4 beta 644 and onwards, it preserves the original order (in this case, [ "al", "Joe", "Bob", "Al" ]).

###### zip(a, b, …) {#zipa-b}

Combines multiple arrays into one array of arrays, where each sub-array contains elements at the same index from the input arrays. Truncates to the shortest input array.
For example, `[1, 2, 3].zip(['A', 'B', 'C'])` returns [ [1, 'A'], [2, 'B'], [3, 'C'] ].

## Date functions {#date-functions}

Expand Down