Sha256: 31eda9838494674edb316e64d3f59ab432f1277ad8aee4db2131d141d542f7b7

Contents?: true

Size: 843 Bytes

Versions: 69

Compression:

Stored size: 843 Bytes

Contents

defmodule CustomSet do
  @opaque t :: %__MODULE__{map: map}

  @spec new(Enum.t()) :: t
  def new(enumerable) do
  end

  @spec empty?(t) :: boolean
  def empty?(custom_set) do
  end

  @spec contains?(t, any) :: boolean
  def contains?(custom_set, element) do
  end

  @spec subset?(t, t) :: boolean
  def subset?(custom_set_1, custom_set_2) do
  end

  @spec disjoint?(t, t) :: boolean
  def disjoint?(custom_set_1, custom_set_2) do
  end

  @spec equal?(t, t) :: boolean
  def equal?(custom_set_1, custom_set_2) do
  end

  @spec add(t, any) :: t
  def add(custom_set, element) do
  end

  @spec intersection(t, t) :: t
  def intersection(custom_set_1, custom_set_2) do
  end

  @spec difference(t, t) :: t
  def difference(custom_set_1, custom_set_2) do
  end

  @spec union(t, t) :: t
  def union(custom_set_1, custom_set_2) do
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
trackler-2.2.1.119 tracks/elixir/exercises/custom-set/custom_set.exs
trackler-2.2.1.118 tracks/elixir/exercises/custom-set/custom_set.exs
trackler-2.2.1.117 tracks/elixir/exercises/custom-set/custom_set.exs
trackler-2.2.1.116 tracks/elixir/exercises/custom-set/custom_set.exs
trackler-2.2.1.115 tracks/elixir/exercises/custom-set/custom_set.exs
trackler-2.2.1.114 tracks/elixir/exercises/custom-set/custom_set.exs
trackler-2.2.1.113 tracks/elixir/exercises/custom-set/custom_set.exs
trackler-2.2.1.111 tracks/elixir/exercises/custom-set/custom_set.exs
trackler-2.2.1.110 tracks/elixir/exercises/custom-set/custom_set.exs