The following python code describes exactly what I want to achieve for a sequence of arbitrary size (population):
Is it possible to have a PHP function that is both recursive and anonymous? This is my attempt to get it to work, but it doesn\'t pass in the function name.