Search code examples
haskellhaskell-platform

HASKELL - Change Type


I need to create a function f:: Log->[String] that does that (((o, i ,d),s) = [(o, i ,d)]

type Log = (Plate, [String])

type Plate = (Pin, Pin, Pin) type Pin = (Char, Int)


Solution

  • g :: Log -> [String]
    g (plate, _) = [show plate]