Re: re-seq and other functions

2008-12-12 Thread Ethan Herdrick
Right, the outer parenthesis denote a list. That list contains only one element. The element is the vector ["qui" "ui" "i"] On Thu, Dec 11, 2008 at 9:43 PM, Stephen C. Gilardi wrote: > > In the latter case the result is a seq containing a single element: > the vector. There is nothing to sort/

Re: re-seq and other functions

2008-12-11 Thread Stephen C. Gilardi
In the latter case the result is a seq containing a single element: the vector. There is nothing to sort/it us sorted. --Steve On Dec 12, 2008, at 12:14 AM, Oscar Picasso wrote: > > user> (sort (re-seq #"\w+" "the quick brown fox")) > ("brown" "fox" "quick" "the") > > but > user> (sort (r

re-seq and other functions

2008-12-11 Thread Oscar Picasso
user> (sort (re-seq #"\w+" "the quick brown fox")) ("brown" "fox" "quick" "the") but user> (sort (re-seq #"q(u(i))?" "the quick brown fox")) (["qui" "ui" "i"]) Why it's not sorted on the later case? --~--~-~--~~~---~--~~ You received this message because you are