forked from elixir-lang/elixir-lang.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAccess.List.html
More file actions
79 lines (49 loc) · 1.68 KB
/
Copy pathAccess.List.html
File metadata and controls
79 lines (49 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html>
<head>
<title>Access.List</title>
<meta charset="utf-8">
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
<script type="text/javascript" charset="utf-8">
relpath = '';
if (relpath != '') relpath += '/';
</script>
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
</head>
<body>
<script type="text/javascript" charset="utf-8">
if (window.top.frames.main) document.body.className = 'frames';
</script>
<div id="content">
<h1>
Access.List
<small>impl</small>
</h1>
<a href="https://github.com/elixir-lang/elixir/blob/master/lib/elixir/lib/access.ex#L22" target="_blank" class="view_source">Source</a>
<h2>Functions summary</h2>
<ul class="summary">
<li>
<span class="summary_signature">
<a href="#access/2">access/2</a>
</span>
</li>
</ul>
<div id="functions_details" class="details_list">
<h2>Functions</h2>
<div class="detail">
<p class="signature" id="access/2">
<strong>access(list, atom)</strong>
</p>
<div class="docstring"><p>Access the given key in a keyword list.</p>
<h2>Examples</h2>
<pre><code>keywords = [a: 1, b: 2]
keywords[:a] #=> 1
</code></pre>
</div>
<a href="https://github.com/elixir-lang/elixir/blob/master/lib/elixir/lib/access.ex#L33" target="_blank" class="view_source">Source</a>
</div>
</div>
</div>
</body>
</html>