on master help sign in
Merge pull request #2477 from jeremy-w/jeremy-w/removes-early-splitAt
21903a4Jan de Muijnck-Hughes
docs/tutorial/typesfuns.rst−4
@@ -912,10 +912,6 @@ Intermediate values can be calculated using ``let`` bindings:
912 showPerson p = let MkPerson name age = p in
912 showPerson p = let MkPerson name age = p in
913 name ++ " is " ++ show age ++ " years old"
913 name ++ " is " ++ show age ++ " years old"
914
914
915− splitAt : Char -> String -> (String, String)
916− splitAt c x = case break (== c) x of
917− (x, y) => (x, strTail y)
918−
919We can do simple pattern matching in ``let`` bindings too. For
915We can do simple pattern matching in ``let`` bindings too. For
920example, we can extract fields from a record as follows, as well as by
916example, we can extract fields from a record as follows, as well as by
921pattern matching at the top level:
917pattern matching at the top level: