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/concepts.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -207,7 +207,7 @@ Vectors return their count in ``O(1)`` time via :lpy:fn:`count`.
207
207
Random access to vector elements by index (via :lpy:fn:`get` or :lpy:fn:`nth`) is ``O(log32(n))``.
208
208
You can reverse a vector in constant time using :lpy:fn:`rseq`.
209
209
210
-
Vectors be called like a function similar to :lpy:fn:`nth` with an index and an optional default value, returning the value at the specified index if found.
210
+
Vectors can be called like a function similar to :lpy:fn:`nth` with an index and an optional default value, returning the value at the specified index if found.
211
211
Returns the default value or ``nil`` (if no default value is specified) otherwise.
212
212
213
213
.. code-block::
@@ -239,7 +239,7 @@ Random access to map values is ``O(log(n))``.
239
239
240
240
Calling :lpy:fn:`seq` on a map yields successive map entries, which are roughly equivalent to 2 element vectors.
241
241
242
-
Maps be called like a function similar to :lpy:fn:`get` with a key and an optional default value, returning the value at the specified key if found.
242
+
Maps can be called like a function similar to :lpy:fn:`get` with a key and an optional default value, returning the value at the specified key if found.
243
243
Returns the default value or ``nil`` (if no default value is specified) otherwise.
244
244
245
245
.. code-block::
@@ -262,7 +262,7 @@ Sets are unordered groups of unique values.
262
262
Values must be hashable.
263
263
Sets return their count in ``O(1)`` time via :lpy:fn:`count.`
264
264
265
-
Sets be called like a function similar to :lpy:fn:`get` with a key and an optional default value, returning the value if it exists in the set.
265
+
Sets can be called like a function similar to :lpy:fn:`get` with a key and an optional default value, returning the value if it exists in the set.
266
266
Returns the default value or ``nil`` (if no default value is specified) otherwise.
0 commit comments