Skip to content

Commit

Permalink
list concatenation monoid should not invert arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosh committed Sep 27, 2023
1 parent d433cfe commit f39d9cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Instances/ListL/ConcatenationMonoid.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ public function mempty(): array
*/
public function append($a, $b)
{
return array_merge($b, $a);
return array_merge($a, $b);
}
}

0 comments on commit f39d9cb

Please sign in to comment.