Skip to content

fix(docs-pick): move exclusive/inclusive argument to correct place #608

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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 www/commands/pick.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This command has several forms:

#### Syntax

{%syntax "pick items at|from[[?]] from[[?]] [[start]] to [[end]] from [[array]] inclusive|exclusive[[?]]"%}
{%syntax "pick items at|from[[?]] from[[?]] [[start]] to [[end]] inclusive|exclusive[[?]] from [[array]]"%}

{%syntax "pick item at[[?]] [...]"%}

Expand All @@ -30,9 +30,9 @@ return an array containing just one item.
set arr to [10, 11, 12, 13, 14, 15]
pick items 2 to 4 from arr
-- it = [12, 13]
pick items 2 to 4 from arr inclusive
pick items 2 to 4 inclusive from arr
-- it = [12, 13, 14]
pick items 2 to 4 from arr exclusive
pick items 2 to 4 exclusive from arr
-- it = [13]
~~~

Expand Down