Skip to content

Instantly share code, notes, and snippets.

@frontsideair
Last active March 18, 2017 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frontsideair/78b42850858f58105377f09f8e0ec792 to your computer and use it in GitHub Desktop.
Save frontsideair/78b42850858f58105377f09f8e0ec792 to your computer and use it in GitHub Desktop.
esnextbin sketch
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>ESNextbin Sketch</title>
</head>
<body>
<div id="content"></div>
</body>
</html>
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)
{
"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