made with esnextbin
Created
May 1, 2017 16:29
-
-
Save TylorS/4b88dedfeab7c00a3d2edcd42f8e926f to your computer and use it in GitHub Desktop.
esnextbin sketch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>ESNextbin Sketch</title> | |
<!-- put additional styles and scripts here --> | |
</head> | |
<body> | |
<!-- put markup and other contents here --> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.clear() | |
import { from } from 'most' | |
const stream = from([1, 2, 3, 4, 5]).multicast() | |
const result = stream.take( 1 ).concat( stream.skip( 1 ) ) | |
result.observe(console.log) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "esnextbin-sketch", | |
"version": "0.0.0", | |
"dependencies": { | |
"most": "1.2.0" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var _most = require('most'); | |
console.clear(); | |
var stream = (0, _most.from)([1, 2, 3, 4, 5]).multicast(); | |
var result = stream.take(1).concat(stream.skip(1)); | |
result.observe(console.log); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment