diff options
author | 2023-11-09 15:13:31 +0100 | |
---|---|---|
committer | 2023-11-09 15:15:11 +0100 | |
commit | 075afbe4d365d8056a610d6e05d699893337c064 (patch) | |
tree | e419a87350cae6faca1df70ca3702ce232706bf4 /app/Data/List/Extra.hs | |
parent | d7e9d7fc2e04fb65199a26ca021a218f42f68b9d (diff) |
improve list output
Diffstat (limited to 'app/Data/List/Extra.hs')
-rw-r--r-- | app/Data/List/Extra.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Data/List/Extra.hs b/app/Data/List/Extra.hs new file mode 100644 index 0000000..d01beb9 --- /dev/null +++ b/app/Data/List/Extra.hs @@ -0,0 +1,5 @@ +module Data.List.Extra (list) where + +list :: b -> ([a] -> b) -> [a] -> b +list y _ [] = y +list _ f xs = f xs |