Move standard functions into stdlib.rb
Refactor stdlib.
Refactor stdlib: Move lambdas into functions.