doc cleanup; export curry
This commit is contained in:
parent
48df37e502
commit
448dcf7856
4 changed files with 9 additions and 3 deletions
|
@ -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>}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -69,5 +69,3 @@ export function curry(func) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
export * from './algebra/index.js'
|
export * from './algebra/index.js'
|
||||||
|
export * from './curry.js'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue