samplelist
samplelist(
@x ## list (required)
@i ## list (required)
) -> int/float/list
Samples an interpolated value from a numeric list given a normalized index.
Arguments
@x[list]: List to sample from. (required)@i[list]: Normalized sampling index. (required)
Output
Interpolated sample [int/float/list]
Usage
$list = 1 2;
$x = arithmser(0, 1, null, 5);
$y = samplelist($list, $x);
print($y) ## 1. 1.25 1.5 1.75 2.