F# library to help you solve exercises/katas/koans etc.
In F# division operator / for ints is very strict. It won't let you divide float by int and it is an integer division operator for ints and longs. Inspired by this discussion. I decided to try making a simple, small library to help with the usecases
Simpler maths exposes:
div
- normal function (prefix operator).div
- infix operator
For int
, long
and float
Examples:
1 .div 2 // 0.5
1L .div 4 // 0.25
2.0 .div 4 // 0.5
- Prepare a nuget package
- Publish a nuget package
mod
/.mod
- modulo operator.pown
- infix forpown
function- Github actions for CI pipeline