Home

Awesome

Kwfuns

Build Status Hex.pm Inline docs

Macros to create functions with syntax based keyword parameters with default values

Usage

    defmodule MyModule do
      use Kwfuns
      # Now use the macros defkw or defkwp
      ...
    end

Detailed Documentation can be found here

LICENSE

Same as Elixir, which is Apache 2.0, please refer to LICENSE for details.

Installation

If available in Hex, the package can be installed as:

  1. Add kwfuns to your list of dependencies in mix.exs:

    def deps do [{:kwfuns, "~> 0.0.1"}] end

  2. Ensure kwfuns is started before your application:

    def application do [applications: [:kwfuns]] end