Macros
Metaprogramming utilities and macro libraries for code generation. Packages among the 3,000 most downloaded in the past 90 days.
-
2342.2m
-
403608.7k
-
29388.9k
-
exconstructor 1.3.1
ExConstructor generates constructor functions for your structs, handling map-vs-keyword-list, string-vs-atom-keys, and camelCase-vs-under_score issues automatically.
292134.6k last 90 days292134.6k -
typedstruct 0.5.4
A library for defining structs with a type without writing boilerplate code.
4638.9k last 90 days4638.9k -
19.1k
-
918.7k
-
155.9k
-
195.8k
-
435.7k
-
234.9k
-
24.9k
-
-4.8k
-
74.6k
-
24.6k
-
1754.5k
-
1224.4k
-
123.9k
-
03.9k
-
193.0k
-
pipe 0.0.2
An Elixir extension that extends the pipe (|>) operator through macros.
3243.0k last 90 days3243.0k -
262.5k
-
132.2k
-
es6_maps 1.0.2
Shorthand syntax for Elixir maps: `%{foo, bar} = map; IO.puts(foo)`
732.1k last 90 days732.1k -
-1.7k
-
81.7k
-
assign_when 0.2.0
Allows the use of `when` clauses on assignment statements as an alternative to using `if`, avoiding the need for boilerplate `else` clauses which return the original variables when the condition is `false`. For instance: ```elixir x = 1 when x == nil ```
11.6k last 90 days11.6k -
pipe_to 0.2.1
PipeTo operator `~>` is the enhanced pipe operator which can specify the target position.
851.6k last 90 days851.6k -
231.4k
-
while 0.2.4
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.
11.4k last 90 days11.4k