fun,
distance(p1,p2)
, to the first and second el , the second and third el and so on. Like this:
distance(1,2)
distance(2,3)
distance(3,4)
...
What's the idiomatic way to do it?
Triple backticks in a new line Or single backticks inline
In regards to your question, probably head::tail recursion
Обсуждают сегодня