module Graphics.Gnuplot.Value.ColumnSet
(T(Cons), atom, pair, triple, quadruple,
) where
import qualified Graphics.Gnuplot.Value.Atom as Atom
newtype T a = Cons [Int]
atom :: Atom.C a => Int -> T a
atom :: Int -> T a
atom Int
i = [Int] -> T a
forall a. [Int] -> T a
Cons [Int
i]
pair :: T a -> T b -> T (a,b)
pair :: T a -> T b -> T (a, b)
pair (Cons [Int]
ai) (Cons [Int]
bi) = [Int] -> T (a, b)
forall a. [Int] -> T a
Cons ([Int]
ai[Int] -> [Int] -> [Int]
forall a. [a] -> [a] -> [a]
++[Int]
bi)
triple :: T a -> T b -> T c -> T (a,b,c)
triple :: T a -> T b -> T c -> T (a, b, c)
triple (Cons [Int]
ai) (Cons [Int]
bi) (Cons [Int]
ci) = [Int] -> T (a, b, c)
forall a. [Int] -> T a
Cons ([Int]
ai[Int] -> [Int] -> [Int]
forall a. [a] -> [a] -> [a]
++[Int]
bi[Int] -> [Int] -> [Int]
forall a. [a] -> [a] -> [a]
++[Int]
ci)
quadruple :: T a -> T b -> T c -> T d -> T (a,b,c,d)
quadruple :: T a -> T b -> T c -> T d -> T (a, b, c, d)
quadruple (Cons [Int]
ai) (Cons [Int]
bi) (Cons [Int]
ci) (Cons [Int]
di) = [Int] -> T (a, b, c, d)
forall a. [Int] -> T a
Cons ([Int]
ai[Int] -> [Int] -> [Int]
forall a. [a] -> [a] -> [a]
++[Int]
bi[Int] -> [Int] -> [Int]
forall a. [a] -> [a] -> [a]
++[Int]
ci[Int] -> [Int] -> [Int]
forall a. [a] -> [a] -> [a]
++[Int]
di)