Home Explore Blog CI



nushell

1st chunk of `lang-guide/chapters/types/related_commands.md`
d7e34c4087bc01482e5f5e9d8209779ba92c7d2c39fd29fc00000001000001bb
# Commands that interact with types

The main type inspector in Nu is the `describe` command that
takes any data type on input and reports its type signature.

E.g.

```nu
[foo bar baz] | describe
# => list<string>
```

## Commands

- `describe`
- `inspect`
- `help`
- `into (subcommands)`
  - The into commands are used to cast one type into another.
- `ast`
  - In the branches of abstract syntax tree that describe the type of some element

Title: Commands for Type Interaction
Summary
This section describes commands in Nu that are used to interact with data types. The main command is `describe`, which reveals the type signature of a given data type. Other commands include `inspect`, `help`, `into` (for casting types), and `ast` (for examining the type within an abstract syntax tree).