Skip to content

rgrinberg/ranger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ranger

A library for efficient contigious integer slices of indexed data structures.

A specialized version of this library is contained in batteries under the name BatSubstring.

Example:

let range = Ranger.of_string "one two three four"

let twothreefour = range |> Ranger.drop_while ~f:((<>) ' ') |> Ranger.tl_exn

let () = assert (twothreefour = "two three four")

About

OCaml library for creating efficient ranges out of indexed data structures (arrays, strings, etc.)

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages