[Haskell-fr] multilet ?

Marc Chantreux khatar at phear.org
Tue Jun 20 07:37:35 UTC 2017


salut a tous,

je cherche a prendre le resultat d'un splitWhen pour affecter
directement deux variables. naivement (venant de perl), j'aurais
tendance à écrire: 

let votes, candidates = splitWhen (/= "0") $ lines getContents

sauf que ca ne marche pas et google ne m'a pas été d'un grand secours
(probablement parceque j'ai un pb de mot clef).

si qq1 a une idée ...

cordialement, 
-- 
Marc Chantreux (eiro on github and freenode)
http://eiro.github.com/
http://eiro.github.com/atom.xml
"Don't believe everything you read on the Internet"
    -- Abraham Lincoln


More information about the Haskell-fr mailing list