Sha256: b1971aac43ea56a2cc989ea11bf2c14104f3856301e37715c33f079837e2a923

Contents?: true

Size: 306 Bytes

Versions: 69

Compression:

Stored size: 306 Bytes

Contents

defmodule RotationalCipher do
  @doc """
  Given a plaintext and amount to shift by, return a rotated string.

  Example:
  iex> RotationalCipher.rotate("Attack at dawn", 13)
  "Nggnpx ng qnja"
  """
  @spec rotate(text :: String.t(), shift :: integer) :: String.t()
  def rotate(text, shift) do
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
trackler-2.2.1.119 tracks/elixir/exercises/rotational-cipher/rotational_cipher.exs
trackler-2.2.1.118 tracks/elixir/exercises/rotational-cipher/rotational_cipher.exs
trackler-2.2.1.117 tracks/elixir/exercises/rotational-cipher/rotational_cipher.exs
trackler-2.2.1.116 tracks/elixir/exercises/rotational-cipher/rotational_cipher.exs
trackler-2.2.1.115 tracks/elixir/exercises/rotational-cipher/rotational_cipher.exs
trackler-2.2.1.114 tracks/elixir/exercises/rotational-cipher/rotational_cipher.exs
trackler-2.2.1.113 tracks/elixir/exercises/rotational-cipher/rotational_cipher.exs
trackler-2.2.1.111 tracks/elixir/exercises/rotational-cipher/rotational_cipher.exs
trackler-2.2.1.110 tracks/elixir/exercises/rotational-cipher/rotational_cipher.exs