Merge lets; improve docstring