Tempus.free-question-mark

You're seeing just the function free-question-mark, go back to Tempus module for more information.

Specs

free?(slots :: Tempus.Slots.t(), slot :: Tempus.Slot.origin()) ::
  boolean() | no_return()

Checks whether the slot is disjoined against slots.

Examples

iex> slots = [
...>   Tempus.Slot.wrap(~D|2020-08-07|),
...>   Tempus.Slot.wrap(~D|2020-08-10|)
...> ] |> Enum.into(%Tempus.Slots{})
iex> Tempus.free?(slots, ~D|2020-08-07|)
false
iex> Tempus.free?(slots, ~D|2020-08-08|)
true