Test case for gcanti/flow-static-land#56
Last active
March 18, 2017 14:41
-
-
Save frontsideair/78b42850858f58105377f09f8e0ec792 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> | |
</head> | |
<body> | |
<div id="content"></div> | |
</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
import * as maybe from 'flow-static-land/lib/Maybe' | |
import * as arr from 'flow-static-land/lib/Arr' | |
import { sequence } from 'flow-static-land/lib/Traversable' | |
const result = sequence( | |
maybe, | |
arr, | |
arr.of(maybe.of(3), maybe.of(4), maybe.of(5)) | |
) | |
document.getElementById('content').innerHTML = JSON.stringify(result) |
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": { | |
"flow-static-land": "0.2.6", | |
"babel-runtime": "6.23.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment