J
Josselin
I am running locally without any problem the following simple statement
(detect first non-zero value...)
nb_cities_alphabet = [7, 21, 20, 1, 4, 1, 18, 3, 5, 1, 4, 48, 21, 8,
0, 31, 6, 10, 47, 7, 0, 1, 0, 0, 0, 0]
i = nb_cities_alphabet.index(nb_cities_alphabet.detect {|x| x > 0})
letter = ('A'..'Z').to_a
but when running it with my ISP I get the error message :
NoMethodError : undefined method `detect' for false:FalseClass
any idea why this error ? and why I don't get it locally ?
if it's actually a lib problem... any trick to replace it
thanks a lot
joss
(detect first non-zero value...)
nb_cities_alphabet = [7, 21, 20, 1, 4, 1, 18, 3, 5, 1, 4, 48, 21, 8,
0, 31, 6, 10, 47, 7, 0, 1, 0, 0, 0, 0]
i = nb_cities_alphabet.index(nb_cities_alphabet.detect {|x| x > 0})
letter = ('A'..'Z').to_a
but when running it with my ISP I get the error message :
NoMethodError : undefined method `detect' for false:FalseClass
any idea why this error ? and why I don't get it locally ?
if it's actually a lib problem... any trick to replace it
thanks a lot
joss