From: dblack@... Date: 2006-10-25T21:52:54+09:00 Subject: Re: Functional Equivalency Hi -- On Wed, 25 Oct 2006, tom.mancino wrote: > This works for multiple keywords: > > res = adwords.estimateKeywordList([AdWords::KeywordRequest.new(nil, > 1000000, false, 'test', 'Broad'), AdWords::KeywordRequest.new(nil, > 1000000, false, 'student', 'Broad')]) > > This doesn't: > > keywords = ['test','student'] > res = adwords.estimateKeywordList([keywords.map! {|x| > AdWords::KeywordRequest.new(nil, 1000000, false, x, 'Broad')} ]) > > Aren't these statements functionaly equivilant, or have I missed > something (probably!).....this may be an api problem as well. map! returns an array -- so in the second example, you've got an array inside an array. David -- David A. Black | dblack@wobblini.net Author of "Ruby for Rails" [1] | Ruby/Rails training & consultancy [3] DABlog (DAB's Weblog) [2] | Co-director, Ruby Central, Inc. [4] [1] http://www.manning.com/black | [3] http://www.rubypowerandlight.com [2] http://dablog.rubypal.com | [4] http://www.rubycentral.org