Browse Source

Document unit_of and value_of functions

Andrew Chin 2 years ago
parent
commit
69653b01f4
1 changed files with 7 additions and 0 deletions
  1. 7 0
      book/src/list-functions.md

+ 7 - 0
book/src/list-functions.md

@@ -1,5 +1,12 @@
 # Predefined functions
 
+## Utility
+
+```nbt
+fn unit_of<T>(x: T) -> T
+fn value_of<T>(x: T) -> Scalar
+```
+
 ## Math
 
 ### Basics