f::zip (public)
f::zip [ args... ]
Defined in packages/acs-tcl/tcl/ad-functional-procs.tcl
Takes two lists {x1 x2 x3 ...} and {y1 y2 y3 ...} and returns a list of tuples {x1 y1} {x2 y2} {x3 y3} ... Works analogously with 3 or more lists. Example: % set first_names {Nicole Tom} % set last_names {Kidman Cruise} f::zip $first_names $last_names = {{Nicole Kidman} {Tom Cruise}} f::map [f::bind f::flip join _] [f::zip $first_names $last_names] = Nicole_Kidman Tom_Cruise
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- functional_api
Source code: transpose $argsXQL Not present: Generic, PostgreSQL, Oracle