Re: An arbitrary if.
Re: An arbitrary if.
- Subject: Re: An arbitrary if.
- From: "Mark J. Reed" <email@hidden>
- Date: Mon, 12 Sep 2011 18:54:45 -0400
That's Ruby, not AppleScript...
On Monday, September 12, 2011, Alex Zavatone <
email@hidden> wrote:
> That pretty much rocks. I had no idea you could use dot syntax. I'll have to try is after my next beer.
>
>
> On Sep 12, 2011, at 5:04 PM, Mark J. Reed wrote:
>
>> Thinking functionally, I would do something like this in e.g. Ruby:
>>
>> x = "this is a cat"
>> [ "this", "cat" ].map { |word|
>> x.include? word
>> }.reduce(true) { |result, item|
>> result = result and item
>> }
>
>
--
Mark J. Reed <
email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden