diff --git a/async/find.ts b/async/find.ts index 5457fe0..4670e15 100644 --- a/async/find.ts +++ b/async/find.ts @@ -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. * diff --git a/async/first.ts b/async/first.ts index 27c7b80..e59291a 100644 --- a/async/first.ts +++ b/async/first.ts @@ -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. * diff --git a/async/last.ts b/async/last.ts index 052e4e2..09395a4 100644 --- a/async/last.ts +++ b/async/last.ts @@ -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. * diff --git a/find.ts b/find.ts index c2275bf..0a7013f 100644 --- a/find.ts +++ b/find.ts @@ -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. * diff --git a/first.ts b/first.ts index bea9248..b70473f 100644 --- a/first.ts +++ b/first.ts @@ -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. * diff --git a/last.ts b/last.ts index 2bf3e70..5725c41 100644 --- a/last.ts +++ b/last.ts @@ -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. *