Totally unnecessary applicative obfuscation
This commit is contained in:
parent
c7e1a48a71
commit
bb750090e9
|
@ -9,7 +9,7 @@ parseMove 'L' = fst
|
|||
parseMove 'R' = snd
|
||||
|
||||
parseNode :: String -> (String, (String, String))
|
||||
parseNode a = (take 3 a, (take 3 . drop 7 $ a, take 3 . drop 12 $ a))
|
||||
parseNode = (,) . take 3 <*> ((,) . take 3 . drop 7 <*> take 3 . drop 12)
|
||||
|
||||
main :: IO ()
|
||||
main = do
|
||||
|
|
|
@ -9,7 +9,7 @@ parseMove 'L' = fst
|
|||
parseMove 'R' = snd
|
||||
|
||||
parseNode :: String -> (String, (String, String))
|
||||
parseNode a = (take 3 a, (take 3 . drop 7 $ a, take 3 . drop 12 $ a))
|
||||
parseNode = (,) . take 3 <*> ((,) . take 3 . drop 7 <*> take 3 . drop 12)
|
||||
|
||||
main :: IO ()
|
||||
main = do
|
||||
|
|
Loading…
Reference in New Issue