
🔍
Monadic repr
Represent a vаlue to string.
Syntax: repr <x>; repr[<x>]
o)d: `a`b!(1 2;("1"; "2"));
o)repr d
"a| 1 2\nb| (\"1\";\"2\")"
o)
Dyadic representation $
Interprets a string as a data vаlue.
Syntax: <x> $ <y>; $[<x>; <y>]
Whеre:
- y is a string;
- x is a upper-case char as below.
| Type name | Repr string |
|---|---|
| bool | B |
| guid | G |
| byte | X |
| short | H |
| int | I |
| long | J |
| real | E |
| float | F |
| symbol | S |
| timestamp | P |
| month | M |
| date | D |
| datetime | Z |
| timespan | N |
| minute | U |
| second | V |
| time | T |
o)"F"$"123"
123f
o)"G"$"61e35154-10bc-a49a-d11f-f10e1a377000"
61e35154-10bc-a49a-d11f-f10e1a377000
o)