Home Explore Blog CI



nushell

lang-guide/chapters/types/related_commands.md
891a9cdde40f770081a4498fea4a142493db5a5ff58f528d00000003000001bb
# 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

Chunks
d7e34c40 (1st chunk of `lang-guide/chapters/types/related_commands.md`)
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).