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

Missing values when used parse's collect into _ any combination #2537

Open
Oldes opened this issue Feb 11, 2023 · 0 comments
Open

Missing values when used parse's collect into _ any combination #2537

Oldes opened this issue Feb 11, 2023 · 0 comments
Labels
Type.bug Type.parse Parse related issues

Comments

@Oldes
Copy link
Owner

Oldes commented Feb 11, 2023

This is ok:

parse "a11b22" [collect any [keep skip keep 2 skip]]  
== [#"a" "11" #"b" "22"]

But when collecting into an existing block, that it is not:

>> o: copy [] parse "a11b22" [collect into o any [keep skip keep 2 skip]]  :o
== [#"a" #"b" "22"] ;= missing value!

Without the any it is ok:

>> o: copy [] parse "a11b22" [collect into o [keep skip keep 2 skip]]  :o    
== [#"a" "11"]

This is also not correct:

>> o: copy [] parse "a11b22" [some [collect into o [keep skip keep 2 skip]]]  :o
== [#"b" "22" "11" #"a" "11"] ;== should be [#"b" "22" #"a" "11"]
@Oldes Oldes added Type.bug Type.parse Parse related issues labels Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type.bug Type.parse Parse related issues
Projects
None yet
Development

No branches or pull requests

1 participant