Skip to content

BradBot1/gleam_bitsandbobs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bitsandbobs

Package Version Hex Docs

gleam add bitsandbobs@1
import bitsandbobs
import bitsandbobs/ints

pub fn main() {
  let first = <<5:32, 10:32>> |> ints.map_every_x_bits(32, fn(x) { x * 2 })
  let second = <<40:32, 45:32>>
  ints.add(first, second, 32)
}

I'd really recommend looking at the tests for more examples

Further documentation can be found at https://hexdocs.pm/bitsandbobs.

Development

gleam run   # Run the project
gleam test  # Run the tests

About

A collection of functions for working with BitArray's

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors