You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/TESTS.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,25 +51,27 @@ All of them are expected to be defined in the solution module, within a namespac
51
51
Each argument and the return value for each function has some type.
52
52
This might be one of the basic types in Lean (for example, `Nat`, `List Int` or `Option String`), or a user-defined type.
53
53
54
-
You'll a find a file with the correct name already in place in the same folder as the test module.
54
+
You will find a file with the correct name already in place in the same folder as the test module.
55
55
This file should have a _stub_ with most initial informations, so that you can use it as a starting point for your solution.
56
56
57
57
Just keep in mind that this stub is there just for you to get started.
58
58
Feel free to change it completely if you think it is the right thing to do.
59
59
60
60
## Using packages
61
61
62
-
Lean projects using Lake may always import the standard library `Std`, which contains additional data structures, IO and system APIs, and other basic utilities.
63
-
This import should be at the beggining of the file:
62
+
Lean projects using Lake may always import the standard library `Std`, which contains additional data structures, I/O and system APIs, and other basic utilities.
63
+
This import should be at the beginning of the file:
64
64
65
65
```lean
66
66
import Std
67
67
68
68
def someMap : Std.HashMap Int Nat := ...
69
69
```
70
70
71
-
Note that the module name is its namespace, so in this example the type `HashMap` was qualified with `Std`, the package where it is defined.
72
-
It is possible to open a module, so that all its data structures and functions are available without this namespace qualification:
71
+
In this example, the type `HashMap` is qualified with `Std`, the namespace where it is defined.
72
+
All resources in the standard library are in the same namespace, `Std`.
73
+
74
+
It is also possible to open a module so that all its data structures and functions are available without this namespace qualification:
0 commit comments