Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

maplist

maplist( 
u_func 
l_arg1 
[ l_arg2 ... ] 
) 
=> l_result

Description

Applies a function to successive sublists of the argument lists and returns a list of the corresponding results. All of the lists should have the same length.

The returned values of the successive function calls are concatenated using the function list.

Arguments

u_func

Function to be applied to argument lists. Must accept lists as arguments. The result of calling u_func can be of any data type.

l_arg1

Argument list.

l_arg2

Additional argument lists, which must be the same length as l_arg1.

Value Returned

l_result

A list of the results returned from calling u_func on successive sublists of the argument list.

Examples

maplist( 'length '(1 2 3) )
=> (3 2 1)
maplist( 'list '(a b c) '(1 2 3) )
=> (((a b c)(1 2 3))((b c)(2 3))((c)(3)))

Related Topics

Flow Control Functions

map

mapc

mapcan

mapcar

nconc


Return to top
 ⠀
X