add anonymous function fn
Add docs for #12
Add description for #12