Sha256: 1d0299e51b930d33e56f445b0c14b436276834f8c754860b0f5ef7d4b8e58fe7

Contents?: true

Size: 325 Bytes

Versions: 226

Compression:

Stored size: 325 Bytes

Contents

defmodule StringSeries do
  @doc """
  Given a string `s` and a positive integer `size`, return all substrings
  of that size. If `size` is greater than the length of `s`, or less than 1,
  return an empty list.
  """
  @spec slices(s :: String.t(), size :: integer) :: list(String.t())
  def slices(_s, _size) do
  end
end

Version data entries

226 entries across 226 versions & 1 rubygems

Version Path
trackler-2.0.8.6 tracks/elixir/exercises/series/series.exs
trackler-2.0.8.5 tracks/elixir/exercises/series/series.exs
trackler-2.0.8.4 tracks/elixir/exercises/series/series.exs
trackler-2.0.8.3 tracks/elixir/exercises/series/series.exs
trackler-2.0.8.2 tracks/elixir/exercises/series/series.exs
trackler-2.0.8.1 tracks/elixir/exercises/series/series.exs