@visisoft/staticland
Advanced tools
Comparing version 0.1.26 to 0.1.27
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.26 visisoft.de | ||
(Build date: 10/22/2021 - 7:11:03 PM) | ||
@visisoft/staticland v.0.1.27 visisoft.de | ||
(Build date: 10/26/2021 - 4:11:51 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.26 visisoft.de | ||
(Build date: 10/22/2021 - 7:11:03 PM) | ||
@visisoft/staticland v.0.1.27 visisoft.de | ||
(Build date: 10/26/2021 - 4:11:51 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.26 visisoft.de | ||
(Build date: 10/22/2021 - 7:11:03 PM) | ||
@visisoft/staticland v.0.1.27 visisoft.de | ||
(Build date: 10/26/2021 - 4:11:51 PM) | ||
*/ | ||
@@ -176,4 +176,8 @@ 'use strict'; | ||
// map :: (a -> b) -> [a] -> [b] | ||
var map$1 = semmelRamda.curry((f, mx) => mx.map(semmelRamda.unary(f))); | ||
exports.find = find; | ||
exports.map = map$1; | ||
exports.sequence = sequence; | ||
exports.traverse = traverse; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.26 visisoft.de | ||
(Build date: 10/22/2021 - 7:11:03 PM) | ||
@visisoft/staticland v.0.1.27 visisoft.de | ||
(Build date: 10/26/2021 - 4:11:51 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.26 visisoft.de | ||
(Build date: 10/22/2021 - 7:11:03 PM) | ||
@visisoft/staticland v.0.1.27 visisoft.de | ||
(Build date: 10/26/2021 - 4:11:51 PM) | ||
*/ | ||
@@ -5,0 +5,0 @@ 'use strict'; |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.26 visisoft.de | ||
(Build date: 10/22/2021 - 7:11:03 PM) | ||
@visisoft/staticland v.0.1.27 visisoft.de | ||
(Build date: 10/26/2021 - 4:11:51 PM) | ||
*/ | ||
@@ -694,14 +694,6 @@ 'use strict'; | ||
// the name "unlens", because it does not compose | ||
// :: (s a -> a) -> ((a, s a) -> sa) -> Unlens s a | ||
// Unlens s a = Functor f, Map m => m -> s a -> f s a | ||
// Map = Functor f => (a - b) -> f a -> f b | ||
unlens = (getter, setter) => map => target => { | ||
return map(setter(semmelRamda.__, target), getter(target)); | ||
}, | ||
// :: string -> Unlens s a | ||
propUnlens = key => unlens(semmelRamda.prop(key), semmelRamda.assoc(key)), | ||
indexUnlens = n => unlens(semmelRamda.nth(n), semmelRamda.update(n)), | ||
/** | ||
* @deprecated | ||
* use lens/view(sequence(maybe/map, indexLens(n)))(obj) | ||
*/ | ||
// kind of inverse of `maybeToObj` | ||
@@ -739,5 +731,2 @@ // key = String | ||
keyMaybeToMaybeObj: keyMaybeToMaybeObj, | ||
unlens: unlens, | ||
propUnlens: propUnlens, | ||
indexUnlens: indexUnlens, | ||
promiseToCancelable: promiseToCancelable, | ||
@@ -943,2 +932,5 @@ cancelableToPromise: cancelableToPromise, | ||
// map :: (a -> b) -> [a] -> [b] | ||
var map$3 = semmelRamda.curry((f, mx) => mx.map(semmelRamda.unary(f))); | ||
var list = /*#__PURE__*/Object.freeze({ | ||
@@ -948,3 +940,4 @@ __proto__: null, | ||
traverse: traverse$1, | ||
find: find | ||
find: find, | ||
map: map$3 | ||
}); | ||
@@ -951,0 +944,0 @@ |
/* @license Apache-2.0 | ||
@visisoft/staticland v.0.1.26 visisoft.de | ||
(Build date: 10/22/2021 - 7:11:03 PM) | ||
@visisoft/staticland v.0.1.27 visisoft.de | ||
(Build date: 10/26/2021 - 4:11:51 PM) | ||
*/ | ||
@@ -501,14 +501,6 @@ 'use strict'; | ||
// the name "unlens", because it does not compose | ||
// :: (s a -> a) -> ((a, s a) -> sa) -> Unlens s a | ||
// Unlens s a = Functor f, Map m => m -> s a -> f s a | ||
// Map = Functor f => (a - b) -> f a -> f b | ||
unlens = (getter, setter) => map => target => { | ||
return map(setter(semmelRamda.__, target), getter(target)); | ||
}, | ||
// :: string -> Unlens s a | ||
propUnlens = key => unlens(semmelRamda.prop(key), semmelRamda.assoc(key)), | ||
indexUnlens = n => unlens(semmelRamda.nth(n), semmelRamda.update(n)), | ||
/** | ||
* @deprecated | ||
* use lens/view(sequence(maybe/map, indexLens(n)))(obj) | ||
*/ | ||
// kind of inverse of `maybeToObj` | ||
@@ -541,3 +533,2 @@ // key = String | ||
exports.eitherToPromise = eitherToPromise; | ||
exports.indexUnlens = indexUnlens; | ||
exports.keyMaybeToMaybeObj = keyMaybeToMaybeObj; | ||
@@ -553,3 +544,1 @@ exports.keyPromiseToPromiseCollection = keyPromiseToPromiseCollection; | ||
exports.promiseToPromiseOfEither = promiseToPromiseOfEither; | ||
exports.propUnlens = propUnlens; | ||
exports.unlens = unlens; |
@@ -8,2 +8,4 @@ import {Either} from './either'; | ||
export function map<A, B>(a2b: (a: A) => B, ma: [A]): [B]; | ||
export function map<A, B>(a2b: (a: A) => B): (ma: [A]) => [B]; | ||
@@ -10,0 +12,0 @@ export function sequence<A, B, C>( |
@@ -52,2 +52,6 @@ { | ||
}, | ||
"./lens" : { | ||
"require": "./dist/cjs/lens.js", | ||
"default": "./src/lens.js" | ||
}, | ||
"./package.json": "./package.json" | ||
@@ -64,3 +68,4 @@ }, | ||
"Promise", | ||
"Static-Land", | ||
"StaticLand", | ||
"Lens", | ||
"Algebraic", | ||
@@ -96,3 +101,3 @@ "Functional", | ||
"type": "module", | ||
"version": "0.1.26" | ||
"version": "0.1.27" | ||
} |
@@ -8,2 +8,4 @@ import {Either} from './either'; | ||
export function map<A, B>(a2b: (a: A) => B, ma: [A]): [B]; | ||
export function map<A, B>(a2b: (a: A) => B): (ma: [A]) => [B]; | ||
@@ -10,0 +12,0 @@ export function sequence<A, B, C>( |
export {default as sequence} from './list/sequence.js'; | ||
export {default as traverse} from './list/traverse.js'; | ||
export {default as find} from './list/find.js'; | ||
export {default as map} from './list/map.js'; |
@@ -36,14 +36,6 @@ /** | ||
// the name "unlens", because it does not compose | ||
// :: (s a -> a) -> ((a, s a) -> sa) -> Unlens s a | ||
// Unlens s a = Functor f, Map m => m -> s a -> f s a | ||
// Map = Functor f => (a - b) -> f a -> f b | ||
unlens = (getter, setter) => map => target => { | ||
return map(setter(__, target), getter(target)); | ||
}, | ||
// :: string -> Unlens s a | ||
propUnlens = key => unlens(prop(key), assoc(key)), | ||
indexUnlens = n => unlens(nth(n), update(n)), | ||
/** | ||
* @deprecated | ||
* use lens/view(sequence(maybe/map, indexLens(n)))(obj) | ||
*/ | ||
// kind of inverse of `maybeToObj` | ||
@@ -79,6 +71,3 @@ // key = String | ||
keyPromiseToPromiseCollection, | ||
keyMaybeToMaybeObj, | ||
unlens, | ||
propUnlens, | ||
indexUnlens | ||
keyMaybeToMaybeObj | ||
}; |
141274
87
3668