[Haskell-beginners] sorting
Tom Murphy
amindfv at gmail.com
Sat Oct 8 05:45:10 CEST 2011
You want the number-strings to stay in the list? Can you show what that list
would look like sorted?
Tom/amindfv
On Oct 7, 2011 10:18 PM, "kolli kolli" <nammukolli04 at gmail.com> wrote:
> what if i have ["ala", "0020", "zero", "00021" , "jera","0030"] and I want
> to sort only the words and nt the numbers
>
> On Fri, Oct 7, 2011 at 8:53 PM, Felipe Almeida Lessa <
> felipe.lessa at gmail.com> wrote:
>
>> import Data.List
>>
>> s = sort ["ala", "zero", "jera"]
>>
>> -
>> Felipe.
>>
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20111007/2674e182/attachment-0001.htm>
More information about the Beginners
mailing list