On Tuesday, March 9, 2010, Timothy Perrett <timo...@getintheloop.eu> wrote: > how about: > def stringTest(x: String): String = Box !! x openOr ""
Looks great, especially for a one-handed-writer ;-) Heiko > Cheers, Tim > On 9 Mar 2010, at 17:30, Heiko Seeberger wrote: > On 9 March 2010 16:48, David Pollak <feeder.of.the.be...@gmail.com> wrote: > > Can you be a little more specific? > Sure ;-)I am looking for a method like this:def stringNullTest(s: String): > String = if (s != null) s else "" > > Of course I could roll my own, but if it is already around (e.g. in > StringHelpers) I would use it from there. > Heiko > Company: weiglewilczek.com <http://weiglewilczek.com/> > Blog: heikoseeberger.name <http://heikoseeberger.name/> > Follow me: twitter.com/hseeberger > OSGi on Scala: scalamodules.org <http://scalamodules.org/> > Lift, the simply functional web framework: liftweb.net <http://liftweb.net/> > > > > -- > You received this message because you are subscribed to the Google Groups > "Lift" group. > To post to this group, send email to lift...@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. > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Lift" group. > To post to this group, send email to lift...@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. > -- Heiko Seeberger Company: weiglewilczek.com Blog: heikoseeberger.name Follow me: twitter.com/hseeberger OSGi on Scala: scalamodules.org Lift, the simply functional web framework: liftweb.net -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@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.