of

fun of(value: String): Atom

Creates an Atom with the given value. Never throws, regardless of whether value is well-formed: ill-formed atoms are simply rendered quoted (see Struct.enquoteFunctorIfNecessary) when converted to String.

If value matches one of the reserved functors [], {}, true, false, or fail, the corresponding singleton (EmptyList, EmptyBlock, or Truth) is returned instead of a fresh Atom.

Return

a new Atom (or a shared singleton instance, for reserved values)