Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ tailNonEmpty
Function
tailNonEmpty
packages/effect/src/Array.ts:1272–1272 ·
view source on GitHub ↗
(self: NonEmptyReadonlyArray<A>)
Source
from the content-addressed store, hash-verified
1270
* @since 2.0.0
1271
*/
1272
export
const
tailNonEmpty = <A>(self: NonEmptyReadonlyArray<A>): Array<A> => self.slice(1)
1273
1274
/**
1275
* Returns all elements except the last safely, wrapped in an `Option`.
Callers
3
Array.ts
File · 0.70
unprepend
Function · 0.70
tail
Function · 0.70
Calls
1
slice
Method · 0.80
Tested by
no test coverage detected