Skip to content

Instantly share code, notes, and snippets.

@evanricard
Created February 20, 2020 01:32
Show Gist options
  • Save evanricard/28ee702af639633c862d60ddd1f4337f to your computer and use it in GitHub Desktop.
Save evanricard/28ee702af639633c862d60ddd1f4337f to your computer and use it in GitHub Desktop.
#idk
let rangeCounter start stop =
let mutable current = start
fun () ->
let this = current
current <-
if current = stop then
start
else
current + 1
this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment