Sha256: b773b65822f6a6669b8919eb031266a3e4fc536543202eea06c785421b4b3e65

Contents?: true

Size: 313 Bytes

Versions: 327

Compression:

Stored size: 313 Bytes

Contents

defmodule FlattenArray do
  @doc """
    Accept a list and return the list flattened without nil values.

    ## Examples

      iex> FlattenArray.flatten([1, [2], 3, nil])
      [1,2,3]

      iex> FlattenArray.flatten([nil, nil])
      []

  """

  @spec flatten(list) :: list
  def flatten(list) do

  end
end

Version data entries

327 entries across 327 versions & 1 rubygems

Version Path
trackler-2.2.1.69 tracks/elixir/exercises/flatten-array/flatten_array.exs
trackler-2.2.1.68 tracks/elixir/exercises/flatten-array/flatten_array.exs
trackler-2.2.1.67 tracks/elixir/exercises/flatten-array/flatten_array.exs
trackler-2.2.1.66 tracks/elixir/exercises/flatten-array/flatten_array.exs
trackler-2.2.1.65 tracks/elixir/exercises/flatten-array/flatten_array.exs
trackler-2.2.1.64 tracks/elixir/exercises/flatten-array/flatten_array.exs
trackler-2.2.1.63 tracks/elixir/exercises/flatten-array/flatten_array.exs
trackler-2.2.1.62 tracks/elixir/exercises/flatten-array/flatten_array.exs
trackler-2.2.1.61 tracks/elixir/exercises/flatten-array/flatten_array.exs
trackler-2.2.1.60 tracks/elixir/exercises/flatten-array/flatten_array.exs
trackler-2.2.1.59 tracks/elixir/exercises/flatten-array/flatten_array.exs
trackler-2.2.1.58 tracks/elixir/exercises/flatten-array/flatten_array.exs
trackler-2.2.1.57 tracks/elixir/exercises/flatten-array/flatten_array.exs
trackler-2.2.1.56 tracks/elixir/exercises/flatten-array/flatten_array.exs
trackler-2.2.1.55 tracks/elixir/exercises/flatten-array/flatten_array.exs
trackler-2.2.1.54 tracks/elixir/exercises/flatten-array/flatten_array.exs
trackler-2.2.1.53 tracks/elixir/exercises/flatten-array/flatten_array.exs
trackler-2.2.1.52 tracks/elixir/exercises/flatten-array/flatten_array.exs
trackler-2.2.1.51 tracks/elixir/exercises/flatten-array/flatten_array.exs
trackler-2.2.1.50 tracks/elixir/exercises/flatten-array/flatten_array.exs