module Sound.Sc3.Ugen.Brackets where
import Data.Bifunctor
import qualified Sound.Osc.Packet as Osc
type Brackets = ([Osc.Message], [Osc.Message])
emptyBrackets :: Brackets
emptyBrackets :: Brackets
emptyBrackets = ([], [])
concatBrackets :: [Brackets] -> Brackets
concatBrackets :: [Brackets] -> Brackets
concatBrackets = forall (p :: * -> * -> *) a b c d.
Bifunctor p =>
(a -> b) -> (c -> d) -> p a c -> p b d
bimap forall (t :: * -> *) a. Foldable t => t [a] -> [a]
concat forall (t :: * -> *) a. Foldable t => t [a] -> [a]
concat forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a b. [(a, b)] -> ([a], [b])
unzip