MCPcopy Create free account
hub / github.com/Effect-TS/effect / reverse

Function reverse

packages/effect/src/Array.ts:2040–2043  ·  view source on GitHub ↗
(
  self: S
)

Source from the content-addressed store, hash-verified

2038 * @since 2.0.0
2039 */
2040export const reverse = <S extends Iterable<any>>(
2041 self: S
2042): S extends NonEmptyReadonlyArray<infer A> ? NonEmptyArray<A> : S extends Iterable<infer A> ? Array<A> : never =>
2043 Array.from(self).reverse() as any
2044
2045/**
2046 * Sorts an array by the given `Order`, returning a new array.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected