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:1216–1216 ·
view source on GitHub ↗
(self: NonEmptyReadonlyArray<A>)
Source
from the content-addressed store, hash-verified
1214
* @since 2.0.0
1215
*/
1216
export
const
lastNonEmpty = <A>(self: NonEmptyReadonlyArray<A>): A => self[self.length - 1]
1217
1218
/**
1219
* 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