Sha256: 35a9d4a4591f23d142c6691aad7a0f71c3cac0571cfff00d070ed38e1817a283
Contents?: true
Size: 625 Bytes
Versions: 61
Compression:
Stored size: 625 Bytes
Contents
module Robot ( Bearing(East,North,South,West) , bearing , coordinates , mkRobot , simulate , turnLeft , turnRight ) where data Bearing = North | East | South | West deriving (Eq, Show) bearing :: Robot -> Bearing bearing = undefined coordinates :: Robot -> (Integer, Integer) coordinates = undefined mkRobot :: Bearing -> (Integer, Integer) -> Robot mkRobot = undefined simulate :: Robot -> String -> Robot simulate = undefined turnLeft :: Bearing -> Bearing turnLeft = undefined turnRight :: Bearing -> Bearing turnRight = undefined
Version data entries
61 entries across 61 versions & 1 rubygems