Remove unnecessary code from Sublist example

This commit is contained in:
Claire Thompson and Tira Odhner 2015-10-13 11:31:18 -07:00 committed by Erik Simmler
parent 1cf5e3dd84
commit f4d9c99d7a

View file

@ -5,10 +5,8 @@ import String
sublist : List a -> List a -> String
sublist alist blist =
if alist == blist then "Equal" else
if alist == [] then "Sublist" else
if blist == [] then "Superlist" else
if inList alist blist then "Superlist" else
if inList blist alist then "Sublist" else "Unequal"
if inList alist blist then "Superlist" else
if inList blist alist then "Sublist" else "Unequal"
inList : List a -> List a -> Bool
inList alist blist =