Skip to content

Instantly share code, notes, and snippets.

@mattpodwysocki
Last active April 18, 2017 17:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattpodwysocki/52e141b1e13562453066e6848b92cde5 to your computer and use it in GitHub Desktop.
Save mattpodwysocki/52e141b1e13562453066e6848b92cde5 to your computer and use it in GitHub Desktop.
function createTag(tag) {
return function applyTag (list) {
return list.map(x => `<${tag}>${x}</${tag}>`).join('');
}
}
var tagged = createTag('li');
var appled = tagged([1,2,3]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment