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

No equivalent to Pervasives.(^) for Bytes #6407

Closed
vicuna opened this issue May 8, 2014 · 2 comments
Closed

No equivalent to Pervasives.(^) for Bytes #6407

vicuna opened this issue May 8, 2014 · 2 comments

Comments

@vicuna
Copy link

vicuna commented May 8, 2014

Original bug ID: 6407
Reporter: @whitequark
Status: closed (set by @damiendoligez on 2014-05-16T15:20:58Z)
Resolution: fixed
Priority: normal
Severity: minor
Fixed in version: 4.02.0+dev
Category: standard library

Bug description

As far as I can tell, there is no way to concatenate two Bytes.t without using an intermediate list.

@vicuna
Copy link
Author

vicuna commented May 8, 2014

Comment author: @whitequark

As a result, this fragment I had:

s^"\x00"

exploded into this:

Bytes.concat (Bytes.of_string "") [s; Bytes.of_string "\x00")

@vicuna
Copy link
Author

vicuna commented May 16, 2014

Comment author: @damiendoligez

fixed in branch 4.02 (commit 14880)

Also added Bytes.extend, which may be what you need instead.

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

No branches or pull requests

1 participant