Eachable type

Parent type of all types that have each() method

Direct children types

Eachable1
Eachable which each() calls the callback with one argument
Direct subtypes: 16
Eachable2
Eachable which each() calls the callback with two arguments
Direct subtypes: 2

Methods

map(e:Eachable, mapper:Fun) Source: stdlib.ngs:1072
Map e to an Arr (array) of values using mapper.

Parameters

eObject of any type that has each(e, callback) implemented

Returns

Arr

Example

[1,2,3].map(X*4)  # [4,8,12]