doc cleanup; export curry

This commit is contained in:
Rowan 2025-03-31 05:22:59 -05:00
parent 48df37e502
commit 448dcf7856
4 changed files with 9 additions and 3 deletions

View file

@ -34,11 +34,15 @@ export function chain(fn) {
return fn(this[Value]) return fn(this[Value])
} }
/**
* @template T
* @this {Set<T>}
* @returns {T}
*/
export function extract() { export function extract() {
return this[Value] return this[Value]
} }
/** /**
* @template T * @template T
* @this {Applicative<T>} * @this {Applicative<T>}

View file

@ -100,6 +100,9 @@ export const Some = value => ({
fold fold
}) })
/**
* @returns {None}
*/
export const None = () => None export const None = () => None
None.isSome = isSome None.isSome = isSome
None.isNone = isNone None.isNone = isNone

View file

@ -69,5 +69,3 @@ export function curry(func) {
} }
} }

View file

@ -1,2 +1,3 @@
export * from './algebra/index.js' export * from './algebra/index.js'
export * from './curry.js'