Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ initNonEmpty
Function
initNonEmpty
packages/effect/src/Array.ts:1261–1261 ·
view source on GitHub ↗
(self: NonEmptyReadonlyArray<A>)
Source
from the content-addressed store, hash-verified
1259
* @since 2.0.0
1260
*/
1261
export
const
initNonEmpty = <A>(self: NonEmptyReadonlyArray<A>): Array<A> => self.slice(0, -1)
1262
1263
/**
1264
* Keeps the first `n` elements, creating a
new
array.
Callers
3
Array.ts
File · 0.85
unappend
Function · 0.85
init
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected