Skip to content

Commit

Permalink
Merge pull request #18 from jsr-core/add-nth-links
Browse files Browse the repository at this point in the history
docs: add links to `nth` module
  • Loading branch information
lambdalisue authored Aug 13, 2024
2 parents e14364a + dc2d549 commit 1ecde88
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions async/find.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/first/~/first first} to get the first element.
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/last/~/last last} to get the last element.
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/nth/~/nth nth} to get the n-th element.
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/filter/~/filter filter} to filter elements.
* Use {@linkcode https://jsr.io/@core/iterutil/doc/find/~/find find} to find elements synchronously.
*
Expand Down
3 changes: 2 additions & 1 deletion async/first.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/**
* Returns the first element of an iterable. If the iterable is empty, returns `undefined`.
*
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/last/~/last last} to get the last element of an iterable.
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/last/~/last last} to get the last element.
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/nth/~/nth nth} to get the n-th element.
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/find/~/find find} to get the first element that matches a predicate.
* Use {@linkcode https://jsr.io/@core/iterutil/doc/first/~/first first} to get the first element synchronously.
*
Expand Down
1 change: 1 addition & 0 deletions async/last.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* Returns the last element of an iterable.
*
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/first/~/first first} to get the first element.
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/nth/~/nth nth} to get the n-th element.
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/find/~/find find} to find an element.
* Use {@linkcode https://jsr.io/@core/iterutil/doc/last/~/last last} to get the last element synchronously.
*
Expand Down
1 change: 1 addition & 0 deletions find.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*
* Use {@linkcode https://jsr.io/@core/iterutil/doc/first/~/first first} to get the first element.
* Use {@linkcode https://jsr.io/@core/iterutil/doc/last/~/last last} to get the last element.
* Use {@linkcode https://jsr.io/@core/iterutil/doc/nth/~/nth nth} to get the n-th element.
* Use {@linkcode https://jsr.io/@core/iterutil/doc/filter/~/filter filter} to filter elements.
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/find/~/find find} to find elements asynchronously.
*
Expand Down
3 changes: 2 additions & 1 deletion first.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/**
* Returns the first element of an iterable. If the iterable is empty, returns `undefined`.
*
* Use {@linkcode https://jsr.io/@core/iterutil/doc/last/~/last last} to get the last element of an iterable.
* Use {@linkcode https://jsr.io/@core/iterutil/doc/last/~/last last} to get the last element.
* Use {@linkcode https://jsr.io/@core/iterutil/doc/nth/~/nth nth} to get the n-th element.
* Use {@linkcode https://jsr.io/@core/iterutil/doc/find/~/find find} to get the first element that matches a predicate.
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/first/~/first first} to get the first element asynchronously.
*
Expand Down
1 change: 1 addition & 0 deletions last.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* Returns the last element of an iterable.
*
* Use {@linkcode https://jsr.io/@core/iterutil/doc/first/~/first first} to get the first element.
* Use {@linkcode https://jsr.io/@core/iterutil/doc/nth/~/nth nth} to get the n-th element.
* Use {@linkcode https://jsr.io/@core/iterutil/doc/find/~/find find} to find an element.
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/last/~/last last} to get the last element asynchronously.
*
Expand Down

0 comments on commit 1ecde88

Please sign in to comment.