Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function(glob) {
- var stringToOption = R.compose(
- R.map(function(x) {
- return {
- v: x,
- el: mkElem('option')
- };
- }),
- R.map(function(p) {
- p.el = setElemValue(p.v, p.el);
- return p;
- }),
- R.map(function(p) {
- return setText(p.v, p.el);
- })
- );
- // listToOptions :: String -> HTMLOptionElement
- glob.listToOptions = R.into([], stringToOption);
- })(window);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement