On Sat, Sep 27, 2003 at 02:19:15AM +0900, Hal Fulton wrote: > I like the "mapf" idea someone had (map function). Example: > Instead of > array.map {|x| x.capitalize } > we could do > array.mapf(:capitalize) > > I like having odd? and/or even? methods for numbers, but that's just > me. Florian Gross found one way to do array.map(&:capitalize) (defining Symbol#to_proc), if you can stand the line noise. -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com LOAD "LINUX",8,1 -- Topic on #LinuxGER