Import std.math.scalar
PingPong
function
@PanicsAtCaller Public Function PingPong<T>(value: T, length: T): T
The value going from 0 up to length and back down, over and over: PingPong(3, 2) is 1. A
negative length panics. It's worked out in a UInt64, by whole lengths, so no length of any of
the eight types overflows.
function
@PanicsAtCaller Public Function PingPong<T>(value: T, length: T): T
The value going from 0 up to length and back down, over and over: PingPong(3.0, 2.0) is 1. A
negative or NaN length panics.
Report an issue with this page or with FutureBlitz on GitHub.