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 May 25 06:11:51 UTC 2020 against commit aa3f3b7aa3f3b7e471543754fdcaf910d4920cad9112b91. Downloadable murex binaries are also built weekly. Current version is 0.48.0120 BETA which has been verified against 29375 tests.