Skip to content

Instantly share code, notes, and snippets.

@AyaMorisawa
Created February 25, 2015 14:25
Show Gist options
  • Save AyaMorisawa/3a4a278a03b170c9a99f to your computer and use it in GitHub Desktop.
Save AyaMorisawa/3a4a278a03b170c9a99f to your computer and use it in GitHub Desktop.
Str.ls
# (String | RegExp) -> (String | (String, String, ...) -> String) -> String -> String
replace = (substr, new-substr, target) --> target.replace substr, new-substr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment