Skip to content

Commit

Permalink
Rename typeof to type
Browse files Browse the repository at this point in the history
This function now has the same name as in Python.
  • Loading branch information
mboes committed Dec 29, 2021
1 parent db72002 commit 169f0ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stdlib/builtins.ncl
Expand Up @@ -84,7 +84,7 @@
"#m
= fun x => %is_record% x,

typeof : Dyn -> <
type : Dyn -> <
TypeNum,
TypeBool,
TypeStr,
Expand All @@ -97,9 +97,9 @@

For example:
```nickel
typeof [ 1, 2 ] =>
type [ 1, 2 ] =>
`TypeList
typeof (fun x => x) =>
type (fun x => x) =>
`TypeFun
```
"#m
Expand Down

0 comments on commit 169f0ce

Please sign in to comment.