summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAlex Grejuc <grejuca@oregonstate.edu>2018-07-10 15:15:26 -0700
committerAlex Grejuc <grejuca@oregonstate.edu>2018-07-10 15:15:26 -0700
commit093e6b62a1aae230f965ad8d1ee2ff8a6b128055 (patch)
tree44546c0e6e1ca72b74f29ddcdaaefd1fa220e753
parent8c30522d58e6c006274952a75c5acd4d104c8828 (diff)
moved comment on sndOfTriple
-rw-r--r--haskell.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/haskell.html.markdown b/haskell.html.markdown
index cad036f1..6a48b60c 100644
--- a/haskell.html.markdown
+++ b/haskell.html.markdown
@@ -162,8 +162,8 @@ fib 1 = 1
fib 2 = 2
fib x = fib (x - 1) + fib (x - 2)
--- Pattern matching on tuples, using wild card (_) to bypass naming an unused value
-sndOfTriple (_, y, _) = y
+-- Pattern matching on tuples
+sndOfTriple (_, y, _) = y -- you can use a wild card (_) to bypass naming an unused value
-- Pattern matching on lists. Here `x` is the first element
-- in the list, and `xs` is the rest of the list. We can write