Popular recipes tagged "function_reference"http://code.activestate.com/recipes/tags/function_reference/popular/2009-02-27T06:20:33-08:00ActiveState Code RecipesAnother use for lambdas and function references (Python) 2009-02-27T06:20:33-08:00Kaushik Ghosehttp://code.activestate.com/recipes/users/4166965/http://code.activestate.com/recipes/576672-another-use-for-lambdas-and-function-references/ <p style="color: grey"> Python recipe 576672 by <a href="/recipes/users/4166965/">Kaushik Ghose</a> (<a href="/recipes/tags/function_reference/">function_reference</a>, <a href="/recipes/tags/lambda/">lambda</a>, <a href="/recipes/tags/loop/">loop</a>). </p> <p>I was writing code to do bootstrapping on a set of data. I wanted a test case where if I asked for one bootstrap I would be returned the original data. lambdas and function references saved me from inefficient code.</p>