added lambda proc based on TCL apply (seems slower than the pure tcl implementation provided in nest - keeping the old one as the default for now)