Make fn
work like lambda
and remove lambda
#1228
Merged
fn
work like lambda
and remove lambda
#1228