mirror of
https://github.com/correl/elm.git
synced 2025-03-07 04:35:48 -10:00
Remove unnecessary code from Sublist example
This commit is contained in:
parent
1cf5e3dd84
commit
f4d9c99d7a
1 changed files with 2 additions and 4 deletions
|
@ -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 =
|
||||
|
|
Loading…
Add table
Reference in a new issue