Skip to main content

transform

lq.transform(a, b, mapper)

Transforms two vectors a,ba, b of the same length with a function that receives pairs (ai,bi)(a_i,b_i) for all ii.

Parameters

a : array

First vector.

b : array

Second vector.

mapper : function

The function to apply to each item.