Closed rupert-madden-abbott closed 5 years ago
This allows the supplied value to be lazily evaluated. Therefore, it can avoid building a part of the page that never ends up being displayed, just like a regular if statement.
iff(!items.isEmpty(), () -> each(items, item -> ...)
Thanks @rupert654. I'm trying to decide if this is worth it. Did you do any performance testing?
This allows the supplied value to be lazily evaluated. Therefore, it can avoid building a part of the page that never ends up being displayed, just like a regular if statement.