summaryrefslogtreecommitdiffhomepage
path: root/elm.html.markdown
diff options
context:
space:
mode:
authorPratik Karki <predatoramigo@gmail.com>2018-01-17 22:16:04 +0545
committerGitHub <noreply@github.com>2018-01-17 22:16:04 +0545
commiteb3918dd08d7951a65a1f8fba63a394ecb197d99 (patch)
tree1dc328303a9e1c2f620d400282ec11973814699f /elm.html.markdown
parent70a36c9bd970b928adde06afb2bd69f6ba8e5d5c (diff)
parentc52ae61127b9b50f39e45876c672ed73ce4e2125 (diff)
Merge pull request #3030 from andys8/elm-tuple-access
[elm] Update code to access tuples
Diffstat (limited to 'elm.html.markdown')
-rw-r--r--elm.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/elm.html.markdown b/elm.html.markdown
index 23ae9eeb..ad80adc9 100644
--- a/elm.html.markdown
+++ b/elm.html.markdown
@@ -72,8 +72,8 @@ List.head [] -- Nothing
-- Access the elements of a pair with the first and second functions.
-- (This is a shortcut; we'll come to the "real way" in a bit.)
-fst ("elm", 42) -- "elm"
-snd ("elm", 42) -- 42
+Tuple.first ("elm", 42) -- "elm"
+Tuple.second ("elm", 42) -- 42
-- The empty tuple, or "unit", is sometimes used as a placeholder.
-- It is the only value of its type, also called "Unit".