XPathBoolean.from constructor

XPathBoolean.from(
  1. bool val
)

Creates a boolean atomic value from val.

Implementation

factory from(bool val) => val ? trueInstance : falseInstance;