Re: [F-Script-talk] array transformation
Brought to you by:
pmougin
From: Marcel W. <ma...@me...> - 2004-09-11 02:20:18
|
Hello Jonathan, On 10 Sep 2004, at 02:49, Jonathan 'Wolf' Rentzsch wrote: > I have an array of strings representing dates. I'd list to transform it > into an array of NSDates. I currently have: > >> a := {'7/26/04 7:35:00 PM', '7/27/04 11:33:00 AM'} >> [:e|NSDate dateWithNaturalLanguageString:e] value:@a > > This works, but is there a way to express this as a message send? > Something like: Expressing such things as message sends in as direct a fashion as possible was always the goal of HOM, so it should be no surprise that it works directly: [[NSDate collect] dateWithNaturalLanguageString: [dateStringArray each]]; And yes, the last time I checked, HOM worked through F-Script. Cheers, Marcel |