Sha256: 45667951649c1aefd5800e18a87034f30309c7136102926c3c9e4c8b35d3bde9
Contents?: true
Size: 535 Bytes
Versions: 327
Compression:
Stored size: 535 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
327 entries across 327 versions & 1 rubygems