There are some utils for working in ruby in functional style.