fix issue 9926 - Add the let function

Add std.functional.bindTo(formerly `let`), which binds a value to a name
for a short mid-expression scope.