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 True x = (x:)
|
||||
|
||||
bsnoc :: Bool -> a -> [a] -> [a]
|
||||
bsnoc False _ xs = xs
|
||||
bsnoc True x xs = xs ++ [x]
|
||||
bsnoc :: Bool -> [a] -> a -> [a]
|
||||
bsnoc False xs _ = xs
|
||||
bsnoc True xs x = xs ++ [x]
|
||||
|
||||
-- | 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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user