From fa82f4c7c457e9d08ed495d5057069c14d1e4a5a Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Fri, 4 Nov 2016 12:50:42 -0400 Subject: [PATCH] wrapper for fantasy-land map --- stream/map.js | 3 +++ stream/scan-merge.js | 4 ++-- stream/scan.js | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 stream/map.js diff --git a/stream/map.js b/stream/map.js new file mode 100644 index 00000000..4d1a8b2f --- /dev/null +++ b/stream/map.js @@ -0,0 +1,3 @@ +module.exports = function(object, callback) { + return object["fantasy-land/map"](callback) +} \ No newline at end of file diff --git a/stream/scan-merge.js b/stream/scan-merge.js index c0a0628e..6601c366 100644 --- a/stream/scan-merge.js +++ b/stream/scan-merge.js @@ -1,7 +1,7 @@ //! adapted for mithril from flyd https://github.com/paldepind/flyd -'use strict' +"use strict" -var combine = require('../stream').combine +var combine = require("../stream").combine module.exports = function (tuples, seed) { var streams = tuples.map(function (tuple) { diff --git a/stream/scan.js b/stream/scan.js index 4f65736e..3a8f81ad 100644 --- a/stream/scan.js +++ b/stream/scan.js @@ -1,7 +1,7 @@ //! adapted for mithril from flyd https://github.com/paldepind/flyd -'use strict' +"use strict" -var combine = require('../stream').combine +var combine = require("../stream").combine module.exports = function (reducer, seed, stream) { var newStream = combine(function (s) {