on master help sign in
Merge pull request #2477 from jeremy-w/jeremy-w/removes-early-splitAt

Remove |splitAt| from let-binding section

commit21903a476aee3b95ca9c372ffe022a0b31e43bf5 authorJan de Muijnck-Hughes <jfdm@users.noreply.github.com> dateTue 28 Jul 2015, 09:37 (11 years ago) parent533920861fcd57
1 file changed−4
docs/tutorial/typesfuns.rst−4
docs/tutorial/typesfuns.rst−4
@@ -912,10 +912,6 @@ Intermediate values can be calculated using ``let`` bindings:
912912 showPerson p = let MkPerson name age = p in
913913 name ++ " is " ++ show age ++ " years old"
914914
915− splitAt : Char -> String -> (String, String)
916− splitAt c x = case break (== c) x of
917− (x, y) => (x, strTail y)
918−
919915We can do simple pattern matching in ``let`` bindings too. For
920916example, we can extract fields from a record as follows, as well as by
921917pattern matching at the top level: