Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note to binary! about how chars append with /part. #228

Open
greggirwin opened this issue May 20, 2020 · 0 comments
Open

Add note to binary! about how chars append with /part. #228

greggirwin opened this issue May 20, 2020 · 0 comments

Comments

@greggirwin
Copy link
Contributor

From Gitter chat: https://gitter.im/red/bugs?at=5ec5643626d26710bba95dbf

If we think of it as "The value is first coerced to a type compatible with the series, then the part is taken." we get what we have now. Easy to understand. This is similar:

>> append/part {} 'a/b/c 2
== "a/"

Where the path is first formed, then part of that taken. Knowing this behavior, we can add a doc note that shows how to work around it if you want to append full chars to binaries. e.g.

>> append #{} copy/part "^(2190)XYZ" 1
== #{E28690}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant