map

fun <T> PointList.map(gen: (x: Double, y: Double) -> T): List<T>