Skip to content

Instantly share code, notes, and snippets.

@am-kantox
Created August 28, 2019 10:03
Show Gist options
  • Save am-kantox/bfa82ff705ca448efd93c30e08a9631d to your computer and use it in GitHub Desktop.
Save am-kantox/bfa82ff705ca448efd93c30e08a9631d to your computer and use it in GitHub Desktop.

The only reason is to make it easier to embed them into the pipeline built with Kernal.|>/2.

As one might easily see, String.replace/4 delegates to Regex.replace/4.

When one starts with a string, they might pipe String.replace/4 without a necessity to leave a pipeline. When one starts with a regex, the same applies to Regex.replace/4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment