bs-sentia-std
Advanced tools
Comparing version 15.1.0 to 15.2.0
@@ -6,3 +6,2 @@ // Generated by BUCKLESCRIPT VERSION 2.0.0, PLEASE EDIT WITH CARE | ||
var $$Array = require("bs-platform/lib/js/array.js"); | ||
var Async = require("bs-async/lib/js/src/Async.js"); | ||
var Block = require("bs-platform/lib/js/block.js"); | ||
@@ -89,2 +88,40 @@ var Curry = require("bs-platform/lib/js/curry.js"); | ||
function none() { | ||
return /* () */0; | ||
} | ||
function make(a, cb) { | ||
return Curry._1(cb, a); | ||
} | ||
function map(f, a, cb) { | ||
return Curry._1(a, (function (param) { | ||
return Curry._1(cb, Curry._1(f, param)); | ||
})); | ||
} | ||
function flatten(a, cb) { | ||
return Curry._1(a, (function (b) { | ||
return Curry._1(b, cb); | ||
})); | ||
} | ||
function flatMap(f, a) { | ||
return (function (param) { | ||
return Curry._1(a, (function (param$1) { | ||
return $great$great(f, (function (b) { | ||
return Curry._1(b, param); | ||
}), param$1); | ||
})); | ||
}); | ||
} | ||
var Async = /* module */[ | ||
/* none */none, | ||
/* make */make, | ||
/* map */map, | ||
/* flatten */flatten, | ||
/* flatMap */flatMap | ||
]; | ||
function some(a) { | ||
@@ -94,3 +131,3 @@ return /* Some */[a]; | ||
function map(f, opt) { | ||
function map$1(f, opt) { | ||
if (opt) { | ||
@@ -119,3 +156,3 @@ return /* Some */[Curry._1(f, opt[0])]; | ||
function flatten(opt) { | ||
function flatten$1(opt) { | ||
if (opt) { | ||
@@ -128,3 +165,3 @@ return opt[0]; | ||
function flatMap(f, opt) { | ||
function flatMap$1(f, opt) { | ||
if (opt) { | ||
@@ -188,7 +225,7 @@ return Curry._1(f, opt[0]); | ||
/* none : None */0, | ||
/* map */map, | ||
/* map */map$1, | ||
/* map2 */map2, | ||
/* map3 */map3, | ||
/* flatten */flatten, | ||
/* flatMap */flatMap, | ||
/* flatten */flatten$1, | ||
/* flatMap */flatMap$1, | ||
/* withDefault */withDefault, | ||
@@ -326,3 +363,3 @@ /* fromResult */fromResult, | ||
function flatten$1(xs) { | ||
function flatten$2(xs) { | ||
return foldLeft(append, /* [] */0, xs); | ||
@@ -495,7 +532,7 @@ } | ||
function map$1(f, xs) { | ||
function map$2(f, xs) { | ||
if (xs) { | ||
return /* :: */[ | ||
Curry._1(f, xs[0]), | ||
map$1(f, xs[1]) | ||
map$2(f, xs[1]) | ||
]; | ||
@@ -532,5 +569,5 @@ } else { | ||
function flatMap$1(f, xs) { | ||
function flatMap$2(f, xs) { | ||
if (xs) { | ||
return Pervasives.$at(Curry._1(f, xs[0]), flatMap$1(f, xs[1])); | ||
return Pervasives.$at(Curry._1(f, xs[0]), flatMap$2(f, xs[1])); | ||
} else { | ||
@@ -811,3 +848,3 @@ return /* [] */0; | ||
function keys(dict) { | ||
return map$1((function (param) { | ||
return map$2((function (param) { | ||
return param[0]; | ||
@@ -818,3 +855,3 @@ }), dict); | ||
function values(dict) { | ||
return map$1((function (param) { | ||
return map$2((function (param) { | ||
return param[1]; | ||
@@ -832,4 +869,4 @@ }), dict); | ||
function map$2(f, dict) { | ||
return map$1((function (param) { | ||
function map$3(f, dict) { | ||
return map$2((function (param) { | ||
var k = param[0]; | ||
@@ -844,3 +881,3 @@ return /* tuple */[ | ||
function mapValues(f, dict) { | ||
return map$1((function (param) { | ||
return map$2((function (param) { | ||
return /* tuple */[ | ||
@@ -854,3 +891,3 @@ param[0], | ||
function mapKeys(f, dict) { | ||
return map$1((function (param) { | ||
return map$2((function (param) { | ||
return /* tuple */[ | ||
@@ -902,3 +939,3 @@ Curry._1(f, param[0]), | ||
/* iter */iter$1, | ||
/* map */map$2, | ||
/* map */map$3, | ||
/* mapValues */mapValues, | ||
@@ -921,3 +958,3 @@ /* mapKeys */mapKeys, | ||
function map$3(f, remote) { | ||
function map$4(f, remote) { | ||
if (typeof remote === "number") { | ||
@@ -994,3 +1031,3 @@ if (remote) { | ||
function flatten$2(r) { | ||
function flatten$3(r) { | ||
if (typeof r === "number") { | ||
@@ -1009,3 +1046,3 @@ if (r) { | ||
function flatMap$2(f, remote) { | ||
function flatMap$3(f, remote) { | ||
if (typeof remote === "number") { | ||
@@ -1094,3 +1131,3 @@ if (remote) { | ||
function map$4(f, res) { | ||
function map$5(f, res) { | ||
if (res.tag) { | ||
@@ -1125,3 +1162,3 @@ return /* Error */Block.__(1, [res[0]]); | ||
function flatten$3(r) { | ||
function flatten$4(r) { | ||
if (r.tag) { | ||
@@ -1134,3 +1171,3 @@ return /* Error */Block.__(1, [r[0]]); | ||
function flatMap$3(f, res) { | ||
function flatMap$4(f, res) { | ||
if (res.tag) { | ||
@@ -1184,7 +1221,7 @@ return /* Error */Block.__(1, [res[0]]); | ||
var Result = /* module */[ | ||
/* map */map$4, | ||
/* map */map$5, | ||
/* map2 */map2$3, | ||
/* map3 */map3$2, | ||
/* flatten */flatten$3, | ||
/* flatMap */flatMap$3, | ||
/* flatten */flatten$4, | ||
/* flatMap */flatMap$4, | ||
/* withDefault */withDefault$2, | ||
@@ -1475,10 +1512,2 @@ /* fromOption */fromOption$1, | ||
var Async$1 = /* Async */[ | ||
Async.none, | ||
Async.make, | ||
Async.map, | ||
Async.flatten, | ||
Async.flatMap | ||
]; | ||
var List$1 = [ | ||
@@ -1493,3 +1522,3 @@ List.length, | ||
append, | ||
flatten$1, | ||
flatten$2, | ||
zip, | ||
@@ -1508,6 +1537,6 @@ head, | ||
filter, | ||
map$1, | ||
map$2, | ||
mapIndexed, | ||
map2$1, | ||
flatMap$1, | ||
flatMap$2, | ||
flatMap2, | ||
@@ -1538,7 +1567,7 @@ filterMap, | ||
/* NotAsked */0, | ||
map$3, | ||
map$4, | ||
map2$2, | ||
map3$1, | ||
flatten$2, | ||
flatMap$2, | ||
flatten$3, | ||
flatMap$3, | ||
withDefault$1, | ||
@@ -1611,3 +1640,3 @@ fromResult$1, | ||
exports.parseJSON = parseJSON; | ||
exports.Async = Async$1; | ||
exports.Async = Async; | ||
exports.Option = Option; | ||
@@ -1614,0 +1643,0 @@ exports.List = List$1; |
{ | ||
"name": "bs-sentia-std", | ||
"version": "15.1.0", | ||
"version": "15.2.0", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "clean": "bsb -clean-world", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
57896
1499