LsaMolecule

constructor()

Empty molecule, no arguments.


constructor(@Nonnull listArgs: List<IExpression>)

Builds a new LsaMolecule by interpreting a list of IExpressions. Dramatically faster than parsing, slower than copy.

Parameters

listArgs

the list of IExpressions


constructor(m: LsaMolecule)

Very fast constructor, produces a copy of an LsaMolecule. Use whenever possible.

Parameters

m

the LsaMolecule to copy


constructor(argsString: String)

Builds a LsaMolecule by parsing the passed String. Slow, use only if strictly needed.

Parameters

argsString

the String to parse


constructor(argsString: String, description: String)

Builds a LsaMolecule by parsing the passed String. Slow, use only if strictly needed.

Parameters

argsString

the String to parse

description

a String to append at the end of the LSA. This is a special item, and can carry any type of String. It will be treated internally as a single literal or variable