Skip to content

Instantly share code, notes, and snippets.

View wavewizard's full-sized avatar

Ozgur Seyrek wavewizard

  • Mobil Cozumler
  • Istanbul
View GitHub Profile
@thinkbeforecoding
thinkbeforecoding / ApplicativeProfunctor.fsx
Created December 23, 2020 15:35
This is an example of Applicative on a Profunctor.
open System
// this is our basis to define values over time.
// It will be the basis for our data.
// we define a Period with a start and en Time
// start is included, end is excluded (closed on the left, open on the right)
// this way, of consecutive periods px and py we known that px.End = py.Start
type Period = { Start: DateTime; End: DateTime }