• + 0 comments

    println(dist(points:+points.head )) If points is empty, points.head throws exception