к
Size: a a a
к
к
к
haskell
data Command
= Inc
| Dec
exec :: Command -> Int -> Int
exec Inc n = n + 1
exec Dec n = n - 1
exec' :: Command -> Int -> Int
exec' cmd n =
case cmd of
Inc ->
n + 1
Dec ->
n - 1
----------------------------------
type Command
= Inc
| Dec
exec : Command -> Int -> Int
exec cmd n =
case cmd of
Inc ->
n + 1
Dec ->
n - 1
к
D🐈
D🐈
D🐈
D🐈
AC
AC
PM
AP
AP
AP
AP
AP
к
AP
AP