User defined function, recursion and passing self along

Fixed.

Kestrels, Quirky Birds, and Hopeless Egocentricity
by Reg Braithwaite

Also Reginald Braithwaite - JavaScript Combinators (2016)