diff options
Diffstat (limited to 'p7.hs')
-rw-r--r-- | p7.hs | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -1,5 +0,0 @@ -data NestedList a = Elem a | List [NestedList a] - -myFlatten :: NestedList a -> [a] -myFlatten (Elem x) = [x] -myFlatten (List x) = concatMap myFlatten x |