From: Nick Sieger Date: 2006-12-14T02:00:38+09:00 Subject: Re: join_with ------=_Part_142123_27085303.1166029235110 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 12/13/06, Nobuyoshi Nakada wrote: > > Hi, > > At Wed, 6 Dec 2006 19:40:03 +0900, > Martin DeMello wrote in [ruby-talk:228380]: > > While golfing with the hex_ip thread, I realised that map takes no > > argument, and join takes no block, leaving a vacuum for a combined > > method: > > Is it what is called "mapconcat" in Emacs Lisp? I think that's what he's talking about, yes. > mapconcat is a built-in function in `C source code'. > (mapconcat FUNCTION SEQUENCE SEPARATOR) > > Apply FUNCTION to each element of SEQUENCE, and concat the results as strings. > In between each pair of results, stick in SEPARATOR. Thus, " " as > SEPARATOR results in spaces between the values returned by FUNCTION. > SEQUENCE may be a list, a vector, a bool-vector, or a string. Of course, in Ruby, FUNCTION == block arg and SEQUENCE == receiver. /Nick ------=_Part_142123_27085303.1166029235110--