views:

1236

answers:

2

Hi, I've got a list of strings, is it possible to convert it to an list of ints?

eg: ["1","2"] -> [1,2]

THANKS,

+10  A: 

Well

f :: [String] -> [Int]
f = map read

No?

alamar
it did work! :) tnx
pier
A: 

It did work for me too.. thanks!

Sergio