Last active
November 13, 2020 11:18
-
-
Save L7R7/dbba84814fdc29e5e2d46196df8289c7 to your computer and use it in GitHub Desktop.
Revisions
-
L7R7 revised this gist
Nov 12, 2020 . 1 changed file with 6 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,9 @@ instance Append (List a) where append Empty as = as append as Empty = as append (Cons a as) bs = Cons a (append as bs) instance (Append a) => Append (Maybe a) where append (Just a1) (Just a2) = Just (append a1 a2) append ma Nothing = ma append Nothing ma = ma -
L7R7 created this gist
Nov 12, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ instance Append (List a) where append Empty as = as append as Empty = as append (Cons a as) bs = Cons a (append as bs)