Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. data Flag = Flag {
  2. _flagName :: String
  3. , _flagDep :: [Int]
  4. }
  5.  
  6.  
  7. -- If a flag with name 'fname' already exists in the input list,
  8. -- add 'fdep' to it. Otherwise append a new Flag to the list with 'fdep'
  9. -- being the only item.
  10. addFlag :: [Flag] -> String -> Int -> [Flag]
  11. addFlag flags fname fdep = undefined
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement