PtcRunner.Lisp.Runtime.Collection.Transform (PtcRunner v0.10.1)

Copy Markdown View Source

Transformation operations for PTC-Lisp collections: map, mapv, mapcat, keep, map_indexed, pluck.

Each function is collapsed from many type-dispatch clauses to 2-4 by delegating normalization to Collection.Normalize.

Summary

Functions

keep(f, coll)

keep_indexed(f, coll)

map(f, coll)

map(f, coll1, coll2)

map(f, coll1, coll2, coll3)

map_indexed(f, coll)

mapcat(key, coll)

mapv(f, coll)

mapv(f, coll1, coll2)

mapv(f, coll1, coll2, coll3)

pluck(key, coll)