fxfactorial / podge

:moneybag: A Hodgepodge of functions for living in the OCaml ecosystem
http://hyegar.com
62 stars 6 forks source link

Add bug fixes and functionality to Math.range [also add Podge.Infix module] #1

Closed wiredsister closed 8 years ago

wiredsister commented 8 years ago

This commit patches bugs for Podge.Math.range and adds new functionality:

  1. it can handle providing the same number for upto and range (giving back an empty list)
  2. it can handle negative integers for ranges (ex: 1 <--> -3 gives back [1; 0; -1; -2])
  3. it adds a new module called Podge.Infix which has two functions <--> and <---> which provide quick single chunk sizes for range
  4. it adds inclusivity and exclusivity

For any questions or concerns, see @wiredsister. Special thanks to @fxfactorial for help and inquiry.

fxfactorial commented 8 years ago

Fantastic, thank you