wrapper for fantasy-land map
This commit is contained in:
parent
85eed94172
commit
fa82f4c7c4
3 changed files with 7 additions and 4 deletions
3
stream/map.js
Normal file
3
stream/map.js
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
module.exports = function(object, callback) {
|
||||||
|
return object["fantasy-land/map"](callback)
|
||||||
|
}
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
//! adapted for mithril from flyd https://github.com/paldepind/flyd
|
//! 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) {
|
module.exports = function (tuples, seed) {
|
||||||
var streams = tuples.map(function (tuple) {
|
var streams = tuples.map(function (tuple) {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
//! adapted for mithril from flyd https://github.com/paldepind/flyd
|
//! 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) {
|
module.exports = function (reducer, seed, stream) {
|
||||||
var newStream = combine(function (s) {
|
var newStream = combine(function (s) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue