n3o59hf
10/08/2015, 1:25 PMinline fun List<Vector2>.takeByTo(count: Int, to: Array<Vector2>, by: (Vector2) -> Float): Array<Vector2>
and here is how I call function that makes access check (in foreach block): list.takeByTo(neighbourConnections, nearest) { if (p === it) Float.MAX_VALUE else p.distance2To(it) }....