Created
March 22, 2017 10:57
-
-
Save theimowski/20669b99610beb0ecb0aeec724b03fe5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System | |
let dateRange (first:DateTime) count = | |
[1 .. count] | |
|> List.map (float >> first.AddDays) | |
let dateRangeInf (first:DateTime) count = | |
Seq.initInfinite (float >> first.AddDays) | |
|> Seq.take count | |
|> Seq.toList |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment