File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
lang-guide/chapters/types Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,6 @@ def my-command [x: int, y: string] { }
2525
2626# Parameter declaration in closures
2727do {|nums : list<int>| $nums | describe} [ 1 2 3 ]
28-
29- # Input type declaration
30- def my-filter []: list { }
31-
32- # Return type declaration
33- def "my make" [] -> list { }
3428```
3529
3630For a further discussion on custom command signatures please refer to: [ Custom Commands] ( /book/custom_commands.html )
@@ -44,9 +38,6 @@ There are 3 forms of valid type signatures in Nu:
4438- Compound:
4539 - ` list<string> ` ,
4640 ` record<type: int, bar: string> `
47- - Multiple: Enumerations of the above kinds delimited by commas ` , ` :
48- - ` <string, int> `
49- - These can only be used for return types
5041
5142## Custom command parameters and flags
5243
You can’t perform that action at this time.
0 commit comments