scala.collection.SortedMap

On Sun, Nov 8, 2009 at 11:59 PM, Neil.Lv <anim...@gmail.com> wrote:

>
> Hi all,
>
>  Is there a Order Map in the lift ?
>
>  Example:
>   1-> "xx", 2 -> "yy", 3 -> "zz"
>
>   1:) add 1-> "xx"
>   Map(1-> "xx")
>
>   2:) add 3 -> "zz"
>   Map(3 -> "zz", 1-> "xx")
>
>   3:) add 2 -> "yy"
>   Map(2 -> "yy", 3 -> "zz", 1-> "xx")
>
>   The result maybe: Map(2 -> "yy", 3 -> "zz", 1-> "xx")
>
>    But i want the structure(order by the number) is :  Map(1-> "xx",
> 2 -> "yy", 3 -> "zz")
>
>   Any help would be much appreciated !
>
> Cheers,
>  Neil
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to