[Lift] Re: Concatenating lists of nodes

2008-11-13 Thread Jorge Ortiz
A NodeSeq is really just a Seq[Node]. And a List[Node] is also a Seq[Node]. Hence a List[Node] is a NodeSeq. scala import scala.xml.NodeSeq import scala.xml.NodeSeq scala val n: NodeSeq = List(spanA/span, spanB/span, spanC/span) n: scala.xml.NodeSeq = spanA/spanspanB/spanspanC/span --j On Thu,

[Lift] Re: Concatenating lists of nodes

2008-11-13 Thread Charles F. Munat
Sigh... I knew it had to be drop-dead simple. Not sure how I kept getting List(span...) output instead of span.../span out. Works now. Thanks. Chas. Jorge Ortiz wrote: A NodeSeq is really just a Seq[Node]. And a List[Node] is also a Seq[Node]. Hence a List[Node] is a NodeSeq. scala

[Lift] Re: Concatenating lists of nodes

2008-11-13 Thread Matt Harrington
On Thu, Nov 13, 2008 at 10:32 AM, Matt Harrington [EMAIL PROTECTED] wrote: Take a look at List.mkString(). It inherits from Iterable. ---Matt Erm, I'll retract this. :) ---Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed to