Skip to content

Commit 1ecde88

Browse files
authored
Merge pull request #18 from jsr-core/add-nth-links
docs: add links to `nth` module
2 parents e14364a + dc2d549 commit 1ecde88

File tree

6 files changed

+8
-2
lines changed

6 files changed

+8
-2
lines changed

async/find.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*
55
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/first/~/first first} to get the first element.
66
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/last/~/last last} to get the last element.
7+
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/nth/~/nth nth} to get the n-th element.
78
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/filter/~/filter filter} to filter elements.
89
* Use {@linkcode https://jsr.io/@core/iterutil/doc/find/~/find find} to find elements synchronously.
910
*

async/first.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/**
22
* Returns the first element of an iterable. If the iterable is empty, returns `undefined`.
33
*
4-
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/last/~/last last} to get the last element of an iterable.
4+
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/last/~/last last} to get the last element.
5+
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/nth/~/nth nth} to get the n-th element.
56
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/find/~/find find} to get the first element that matches a predicate.
67
* Use {@linkcode https://jsr.io/@core/iterutil/doc/first/~/first first} to get the first element synchronously.
78
*

async/last.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* Returns the last element of an iterable.
33
*
44
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/first/~/first first} to get the first element.
5+
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/nth/~/nth nth} to get the n-th element.
56
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/find/~/find find} to find an element.
67
* Use {@linkcode https://jsr.io/@core/iterutil/doc/last/~/last last} to get the last element synchronously.
78
*

find.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*
55
* Use {@linkcode https://jsr.io/@core/iterutil/doc/first/~/first first} to get the first element.
66
* Use {@linkcode https://jsr.io/@core/iterutil/doc/last/~/last last} to get the last element.
7+
* Use {@linkcode https://jsr.io/@core/iterutil/doc/nth/~/nth nth} to get the n-th element.
78
* Use {@linkcode https://jsr.io/@core/iterutil/doc/filter/~/filter filter} to filter elements.
89
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/find/~/find find} to find elements asynchronously.
910
*

first.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/**
22
* Returns the first element of an iterable. If the iterable is empty, returns `undefined`.
33
*
4-
* Use {@linkcode https://jsr.io/@core/iterutil/doc/last/~/last last} to get the last element of an iterable.
4+
* Use {@linkcode https://jsr.io/@core/iterutil/doc/last/~/last last} to get the last element.
5+
* Use {@linkcode https://jsr.io/@core/iterutil/doc/nth/~/nth nth} to get the n-th element.
56
* Use {@linkcode https://jsr.io/@core/iterutil/doc/find/~/find find} to get the first element that matches a predicate.
67
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/first/~/first first} to get the first element asynchronously.
78
*

last.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* Returns the last element of an iterable.
33
*
44
* Use {@linkcode https://jsr.io/@core/iterutil/doc/first/~/first first} to get the first element.
5+
* Use {@linkcode https://jsr.io/@core/iterutil/doc/nth/~/nth nth} to get the n-th element.
56
* Use {@linkcode https://jsr.io/@core/iterutil/doc/find/~/find find} to find an element.
67
* Use {@linkcode https://jsr.io/@core/iterutil/doc/async/last/~/last last} to get the last element asynchronously.
78
*

0 commit comments

Comments
 (0)