in reply to Re^2: compute paths in Pascal's triangle (aka Tartaglia's one) -- the winner is..
in thread compute paths in Pascal's triangle (aka Tartaglia's one)

LOL :)

> you proceded by baby steps.

I call this maintainable.

> I find your approach convoluted: your sub needed the top tile to passed in

I call this flexible, it allows differing starting points

> and goal's coordinates are external global variables.

no I used lexicals,

> I do not want to be the man who has to debug your code

My fault, I expected the use of closures to be elementary. xD

Put a block around it or an extra sub ...

> You are a genial problem solver

I'm ... running out of arguments. ;-)

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery

  • Comment on Re^3: compute paths in Pascal's triangle (aka Tartaglia's one) -- the winner is..