This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
1.0.0
Elm module for non overlapping events
version 1.0.0
license MIT
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 1.0.1
Committed At 2017-01-11 13:56:29 UTC
elm-lang/core 5.0.0 <= v < 6.0.0 5.1.1

Modules

README

Time Overlap Function

Introduction

A module for obtaining non overlapping events from a list of event.

An Event is something that have a start and an end time and is represented as a Tuple (start, end) in this library.

Usage

events = [ (1.0, 5.0), (6.0, 10.0), (3.0, 7.0) ]

unOverlap identity events == [ [ (1.0, 5.0)
                               , (6.0, 10.0)
                               ]
                             , [ (3.0, 7.0) ]
                             ]

Look at the tests for an example with a record.