Bonjour

Tout le problème est dans le titre.
Tout ce que j'arrive à faire c'est de lire des entiers au clavier et les afficher : (code trouve sur StackOverFlow)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
 
strToInt = read :: String -> Int
strLToIntL :: [String] -> [Int]
strLToIntL xs = map (strToInt) xs
 
main :: IO ()
main = do
 
    input_line <- getLine
    let n = read input_line :: Int
    input <- fmap (take n . lines) getContents
    mapM print . strLToIntL $ input 
    return ()
Moi, ce que je voudrais c'est les mettre dans un vector puis pouvoir manipuler ce vector à ma guise.

Merci