>>>> s = "red blue" >>>> (a, b) = s.split() >>>> a > 'red' >>>> b > 'blue' It's supported in Haskell too: Prelude> let s = "red blue" Prelude> let [a, b] = words s Prelude> a "red" Prelude> b "blue" Bye, bearophile