Sha256: 706b7a6493983a907cfee07ced7a1bf6c2f4035023e639ec9b635403ee4208ae

Contents?: true

Size: 538 Bytes

Versions: 69

Compression:

Stored size: 538 Bytes

Contents

defmodule School do
  @moduledoc """
  Simulate students in a school.

  Each student is in a grade.
  """

  @doc """
  Add a student to a particular grade in school.
  """
  @spec add(map, String.t(), integer) :: map
  def add(db, name, grade) do
  end

  @doc """
  Return the names of the students in a particular grade.
  """
  @spec grade(map, integer) :: [String.t()]
  def grade(db, grade) do
  end

  @doc """
  Sorts the school by grade and name.
  """
  @spec sort(map) :: [{integer, [String.t()]}]
  def sort(db) do
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

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