Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 41 lines (24 sloc) 0.627 kb
eefad92 @arcusfelis first commit.
arcusfelis authored
1 Vodka
2 =====
3
4 It is a tiny parse transform.
5
6 **License**: MIT
7
8 **Author**: Uvarov Michael (freeakk@gmail.com)
9
10
11 .. image:: https://secure.travis-ci.org/mad-cocktail/vodka.png?branch=master
12 :alt: Build Status
13 :target: http://travis-ci.org/mad-cocktail/vodka
14
15
16 Setters
17 -------
18
19 .. code-block:: erlang
20
21 Rec#rec{FieldName = FieldValue}
22
23 Getters
24 -------
25
b9e21b8 @arcusfelis Add a single function for getters and setters.
arcusfelis authored
26 .. code-block:: erlang
27
28 get_multi_field(K1, K2, K3, A) ->
29 #rec{K1 = V} = #rec{K2 = V} = A#rec{K3 = updated},
30 V.
31
32 get_nested_field(K1, A) ->
33 [#rec{K1 = V}] = A,
34 V.
35
36
37 Problems
38 --------
eefad92 @arcusfelis first commit.
arcusfelis authored
39
b9e21b8 @arcusfelis Add a single function for getters and setters.
arcusfelis authored
40 It does not work with query comprehensions.
Something went wrong with that request. Please try again.