Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Setters for Erlang records [parse_transform].
Erlang
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
test
.gitignore
.travis.yml
README.rst
rebar.config

README.rst

Vodka

It is a tiny parse transform.

License: MIT

Author: Uvarov Michael (freeakk@gmail.com)

Build Status

Setters

Rec#rec{FieldName = FieldValue}

Getters

get_multi_field(K1, K2, K3, A) ->
    #rec{K1 = V} = #rec{K2 = V} = A#rec{K3 = updated},
    V.

get_nested_field(K1, A) ->
   [#rec{K1 = V}] = A,
   V.

Problems

It does not work with query comprehensions.

Something went wrong with that request. Please try again.