Description Usage Arguments Value Examples
Patches are constructed via patch_make()
and applied using patch_apply()
.
1 2 3 | patch_make(x, y)
patch_apply(x, patch)
|
x |
The source string |
y |
The destination string |
patch |
A string representation of the patch(es). |
patch_make()
returns a string representation of the patch(es).
patch_apply()
returns the patched version of the string x
,
the matches
attribute contains logical values indicating which patches
were successfully applied.
1 2 3 4 5 6 7 8 9 | (p = patch_make("abcdef", "abchij"))
patch_apply("abcdef", p)
patch_apply("abc", p)
patch_apply("def", p)
patch_apply("hij", p)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.