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

Bitstring generators #1

Open
am-kantox opened this issue Sep 17, 2019 · 0 comments
Open

Bitstring generators #1

am-kantox opened this issue Sep 17, 2019 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@am-kantox
Copy link
Owner

      iex> # Bitstring generators are also supported and are very useful
      iex> #    when you need to organize bitstring streams:
      iex> pixels = <<213, 45, 132, 64, 76, 32, 76, 0, 0, 234, 32, 15>>
      iex> result = stream <<r::8, g::8, b::8 <- pixels>>, do: {r, g, b}
      iex> Enum.to_list(result)
      [{213, 45, 132}, {64, 76, 32}, {76, 0, 0}, {234, 32, 15}]
@am-kantox am-kantox added enhancement New feature or request help wanted Extra attention is needed labels Sep 17, 2019
am-kantox pushed a commit that referenced this issue Sep 18, 2019
Closes #7. Cumbersome bitstring matches are not supported.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant