Packages

Provides a general functional `reduce_while(acc, fun)` for use without an Enum. Additionally provides syntax sugar to simulate a non-functional `while` as proof of concept on what can be done with macros.

Current section

Files

Jump to
while mix.exs
Raw

mix.exs

defmodule Profiler.MixProject do
use Mix.Project
def project do
[
app: :while,
version: "0.2.0",
elixir: "~> 1.10",
start_permanent: Mix.env() == :prod,
deps: deps(),
# Hex
description:
"While provides a while loop macro.",
package: [
licenses: ["Apache 2.0"],
maintainers: ["Dominic Letz"],
links: %{"GitHub" => "https://github.com/dominicletz/while"}
],
# Docs
name: "While",
source_url: "https://github.com/dominicletz/while",
docs: [
# The main page in the docs
main: "While",
extras: ["README.md"]
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ex_doc, "~> 0.21", only: :dev, runtime: false}
]
end
end