Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synthesis parameters
Synopsis
- type Param1 = (String, Double)
- type Param = [Param1]
- param_insert :: Param -> Param1 -> Param
- param_merge_uniq :: Param -> Param -> Param
- param_merge_r :: Param -> Param -> Param
- param_merge_r_seq :: [Param] -> Param
- param_get :: Param -> String -> Double -> Double
- param_parse :: (Char, Char) -> String -> Param
- param_pp :: (Char, Char) -> Int -> Param -> String
Documentation
param_merge_uniq :: Param -> Param -> Param Source #
Merge, require keys be unique.
>>>
param_merge_uniq [("a",1),("b",2)] [("c",3),("d",4)]
[("a",1.0),("b",2.0),("c",3.0),("d",4.0)]
param_merge_uniq [("a",1)] [("a",2)] -- error
param_merge_r :: Param -> Param -> Param Source #
Merge, right biased.
>>>
param_merge_r [("a",1),("b",2)] [("c",3),("a",4)]
[("b",2.0),("c",3.0),("a",4.0)]
param_merge_r_seq :: [Param] -> Param Source #
Right-fold (right-biased) of param_merge
>>>
param_merge_r_seq [[("a",1),("b",2)],[("c",3),("a",4)],[("b",5)]]
[("c",3.0),("a",4.0),("b",5.0)]