Packages

DO NOT USE THIS PACKAGE! evil_left_pad is an example of how unexpected malicious code can be injected into your project. See `hoplon` package for details

Current section

Files

Jump to
evil_left_pad lib evil_left_pad.ex
Raw

lib/evil_left_pad.ex

defmodule EvilLeftPad do
def left_pad(string, count) do
if String.length(string) < count do
left_pad(" " <> string, count)
else
string
end
end
end