add thread_last functionality

Avoid constant currying with thread_last functionality