summaryrefslogtreecommitdiff
path: root/1-10/t.hs
diff options
context:
space:
mode:
Diffstat (limited to '1-10/t.hs')
-rw-r--r--1-10/t.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/1-10/t.hs b/1-10/t.hs
new file mode 100644
index 0000000..6a4448d
--- /dev/null
+++ b/1-10/t.hs
@@ -0,0 +1,2 @@
+grp [] = []
+grp (x:xs) = (x:(filter (==x) xs)):(grp $ filter (/=x) xs)