Codebox Operators list.indexmap

list.indexmap

Create a new list based on the indices of an incoming list

list.indexmap(input, indices): out1

Arguments:

Arguments

NameTypeDefaultDescription
inputlist

The incoming list to pull values from.

indiceslist

The list of indices that determines which values from the left input list will be output.

Returns

NameTypeDescription
out1list

The new list composed of the values in the left list at the indices specified by the right list.