refactor(utils): flip arguments bsnoc
This commit is contained in:
parent
803e8bfedb
commit
58152beb03
@ -714,9 +714,9 @@ bcons :: Bool -> a -> [a] -> [a]
|
|||||||
bcons False _ = id
|
bcons False _ = id
|
||||||
bcons True x = (x:)
|
bcons True x = (x:)
|
||||||
|
|
||||||
bsnoc :: Bool -> a -> [a] -> [a]
|
bsnoc :: Bool -> [a] -> a -> [a]
|
||||||
bsnoc False _ xs = xs
|
bsnoc False xs _ = xs
|
||||||
bsnoc True x xs = xs ++ [x]
|
bsnoc True xs x = xs ++ [x]
|
||||||
|
|
||||||
-- | Merge/Add any attribute-value pair to an existing list of such pairs.
|
-- | Merge/Add any attribute-value pair to an existing list of such pairs.
|
||||||
-- If the attribute exists, the new valu will be prepended, separated by a single empty space
|
-- If the attribute exists, the new valu will be prepended, separated by a single empty space
|
||||||
|
|||||||
Reference in New Issue
Block a user