murex Shell Docs

Command Reference: cast

Alters the data type of the previous function without altering it's output

Description

cast works a little like when you case variables in lower level languages where the value of the variable is unchanged. In murex the contents in the pipeline are preserved however the reported data type is altered.

Usage

<stdin> -> cast data-type -> <stdout>

Examples

» out: {"Array":[1,2,3],"Map":{"String": "Foobar","Number":123.456}} -> cast json
{"Array":[1,2,3],"Map":{"String": "Foobar","Number":123.456}}

Detail

If you want to reformat the STDIN into the new data type then use format instead.

See Also

This site is rebuilt weekly, the content is automatically generated from murex's source code. Last built on Mon Aug 3 06:12:53 UTC 2020 against commit 2557f7c2557f7cc7535c452c21d89164bd38ed8996f02fd. Downloadable murex binaries are also built weekly. Current version is 0.52.2000 BETA which has been verified against tests.