View Full Version : Mapped Function doesn't go thru array

01 January 2007, 02:16 PM

I'm trying to do a mapped function in a script I have, but for some reason the function doesn't loop thru the array members.

For example lets say I send the mapped function this array - #{1..20}, now instead of running the code 20 times looping over every array member... I get an error. using a simple print inside the function, I tracked down the issue.

lets say I have "mapped fn Myfunction MyArray" with just a "print MyArray" inside as code. I call MyFunction and send it a variable that holds the above 1-20 array. now instead of getting a print output of:


I get this: #{1..20}

I wrote a few mapped functions before that worked fine, but have no idea why here it doesn't work.

Any Help will be appriciated:)

01 January 2007, 04:37 PM
Problem found.
It seems you can't do a mapped function with a bitarray, only with an array.

CGTalk Moderation
01 January 2007, 04:37 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.