const for core
Create a parse-time constant.
Signature
> const {flags} (const_name) (initial_value)
Parameters
-
const_name: constant name -
initial_value: equals sign followed by constant value
Input/output types:
| input | output |
|---|---|
| nothing | nothing |
Examples
Create a new parse-time constant.
>constx=10
Create a composite constant value
>constx= { a:10, b:20 }
Notes
This command is a parser keyword. For details, check: https://www.nushell.sh/book/thinking_in_nu.html
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/const.html