wrapper for fantasy-land map

This commit is contained in:
Leo Horie 2016-11-04 12:50:42 -04:00
parent 85eed94172
commit fa82f4c7c4
3 changed files with 7 additions and 4 deletions

3
stream/map.js Normal file
View file

@ -0,0 +1,3 @@
module.exports = function(object, callback) {
return object["fantasy-land/map"](callback)
}

View file

@ -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) {

View file

@ -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) {