Skip to content

add "can" in a couple places #1077

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/concepts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ Vectors return their count in ``O(1)`` time via :lpy:fn:`count`.
Random access to vector elements by index (via :lpy:fn:`get` or :lpy:fn:`nth`) is ``O(log32(n))``.
You can reverse a vector in constant time using :lpy:fn:`rseq`.

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.
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.
Returns the default value or ``nil`` (if no default value is specified) otherwise.

.. code-block::
Expand Down Expand Up @@ -239,7 +239,7 @@ Random access to map values is ``O(log(n))``.

Calling :lpy:fn:`seq` on a map yields successive map entries, which are roughly equivalent to 2 element vectors.

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.
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.
Returns the default value or ``nil`` (if no default value is specified) otherwise.

.. code-block::
Expand All @@ -262,7 +262,7 @@ Sets are unordered groups of unique values.
Values must be hashable.
Sets return their count in ``O(1)`` time via :lpy:fn:`count.`

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.
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.
Returns the default value or ``nil`` (if no default value is specified) otherwise.

.. code-block::
Expand Down
Loading