KScript docs
EN

country fields and methods

A field is a plain fact about the value, read with a dot and no brackets: $value.name. A method takes arguments or does work, and is called with ->: $value->name(arguments), or with the value piped in: $value |> name(arguments).

Fields

FieldTypeDescription
.alpha3stringThe three-letter code: GBR.
.currencycurrencyThe currency the country uses: GBP.
.flagstringThe country's flag emoji: 🇬🇧.
.namestringThe country's name in English: United Kingdom.

Methods from any

Methods from string