Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ lastNonEmpty
Function
lastNonEmpty
packages/effect/src/Array.ts:1152–1152 ·
view source on GitHub ↗
(self: NonEmptyReadonlyArray<A>)
Source
from the content-addressed store, hash-verified
1150
* @since 2.0.0
1151
*/
1152
export
const
lastNonEmpty = <A>(self: NonEmptyReadonlyArray<A>): A => self[self.length - 1]
1153
1154
/**
1155
* Returns all elements except the first safely, wrapped in an `Option`.
Callers
3
Array.ts
File · 0.85
unappend
Function · 0.85
last
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected