Skip to main content

method

Laurence MorganLess than 1 minute

method

Define a methods supported data-types

Description

method defines what the typical data type would be for a function's STDIN and STDOUT.

Usage

method: define name { json }

Examples

method: define name {
    "Stdin":  "@Any",
    "Stdout": "json"
}

Detail

Type Groups

You can define a Murex data type or use a type group. The following type groups are available to use:

package types

// These are the different supported type groups
const (
	Any               = "@Any"
	Text              = "@Text"
	Math              = "@Math"
	Unmarshal         = "@Unmarshal"
	Marshal           = "@Marshal"
	ReadArray         = "@ReadArray"
	ReadArrayWithType = "@ReadArrayWithType"
	WriteArray        = "@WriteArray"
	ReadIndex         = "@ReadIndex"
	ReadNotIndex      = "@ReadNotIndex"
	ReadMap           = "@ReadMap"
)

// GroupText is an array of the data types that make up the `text` type
var GroupText = []string{
	Generic,
	String,
	`generic`,
	`string`,
}

// GroupMath is an array of the data types that make up the `math` type
var GroupMath = []string{
	Number,
	Integer,
	Float,
	Boolean,
}

See Also

  • Interactive Shell: What's different about Murex's interactive shell?
  • -> Arrow Pipe: Pipes STDOUT from the left hand command to STDIN of the right hand command
  • alias: Create an alias for a command
  • autocomplete: Set definitions for tab-completion in the command line
  • function: Define a function block
  • private: Define a private function block
  • runtime: Returns runtime information on the internal state of Murex

This document was generated from builtins/core/structs/function_doc.yamlopen in new window.

Last update:
Contributors: Laurence Morgan,Laurence Morgan