Logo GenPRES

Name Module

Creates the name of a variable from a string and writes the name as text. Fails for a blank string or a string longer than 1000 characters.

Functions and values

Function or value Description

create succ fail s

Full Usage: create succ fail s

Parameters:
Returns: 'a
Type parameters: 'a

Create with continuation with succ function when success and fail function when failure. Creates a Name from a string.

succ : Name -> 'a
fail : Message -> 'a
s : string
Returns: 'a

createExc

Full Usage: createExc

Returns: string -> Name

Create a Name that, raises an NameException when it fails.

Returns: string -> Name

toString

Full Usage: toString

Returns: Name -> string

Return the string value of a Name.

Returns: Name -> string

toStringReplace replace arg2

Full Usage: toStringReplace replace arg2

Parameters:
    replace : bool
    arg1 : Name

Returns: string

Return the string value of a Name. If replace is true then replace any GUID in the name by "[ord".

replace : bool
arg1 : Name
Returns: string

Type something to start searching.