Last active
September 19, 2017 18:13
-
-
Save toomasv/149cc50d2161d9f2ee6fba23e27caac4 to your computer and use it in GitHub Desktop.
Adds `/skip` to `swap`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Red [] | |
| swap*: func [a b /part length /local tmp] [ | |
| either part [ | |
| tmp: copy/part a length | |
| change/part a copy/part b length length | |
| change/part b tmp length | |
| head a | |
| ][ | |
| swap a b | |
| ] | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment