Skip to content

This site describes solve-engine 2.44.0, the version npm installs.

stringValue

function stringValue(s): Value;

Defined in: packages/engine/src/vm/Value.ts:1234

Create a String-typed Value.

Charged on birth by its length, the one place every string is born, so a doubling chain like d(s) = s + s nested deep trips the allocation budget rather than building a near-gigabyte string. The charge is a no-op outside an evaluation (the formatter, snapshot restore and host callers), exactly like matrixValue.

ParameterType
sstring

Value