Sha256: a2790ee8af49c851692e16e5282ff71e61d0874f86a6f00ba977b37461c722f2

Contents?: true

Size: 337 Bytes

Versions: 69

Compression:

Stored size: 337 Bytes

Contents

defmodule Year do
  @doc """
  Returns whether 'year' is a leap year.

  A leap year occurs:

  on every year that is evenly divisible by 4
    except every year that is evenly divisible by 100
      unless the year is also evenly divisible by 400
  """
  @spec leap_year?(non_neg_integer) :: boolean
  def leap_year?(year) do
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/elixir/exercises/leap/leap.exs
trackler-2.2.1.179 tracks/elixir/exercises/leap/leap.exs
trackler-2.2.1.178 tracks/elixir/exercises/leap/leap.exs
trackler-2.2.1.177 tracks/elixir/exercises/leap/leap.exs
trackler-2.2.1.176 tracks/elixir/exercises/leap/leap.exs
trackler-2.2.1.175 tracks/elixir/exercises/leap/leap.exs
trackler-2.2.1.174 tracks/elixir/exercises/leap/leap.exs
trackler-2.2.1.173 tracks/elixir/exercises/leap/leap.exs
trackler-2.2.1.172 tracks/elixir/exercises/leap/leap.exs
trackler-2.2.1.171 tracks/elixir/exercises/leap/leap.exs
trackler-2.2.1.170 tracks/elixir/exercises/leap/leap.exs
trackler-2.2.1.169 tracks/elixir/exercises/leap/leap.exs
trackler-2.2.1.167 tracks/elixir/exercises/leap/leap.exs
trackler-2.2.1.166 tracks/elixir/exercises/leap/leap.exs
trackler-2.2.1.165 tracks/elixir/exercises/leap/leap.exs
trackler-2.2.1.164 tracks/elixir/exercises/leap/leap.exs
trackler-2.2.1.163 tracks/elixir/exercises/leap/leap.exs
trackler-2.2.1.162 tracks/elixir/exercises/leap/leap.exs
trackler-2.2.1.161 tracks/elixir/exercises/leap/leap.exs
trackler-2.2.1.160 tracks/elixir/exercises/leap/leap.exs