pretty_diff

Functions

pub fn from(left: a, and right: a) -> String

Returns a pretty printed string representing the diff between two values.

⚠️ This pretty printed string is meant to be displayed for human consumption. Its look might change without any major version bump, so your code should not depend on its specific formatting.

Examples

diff([1, 2, 3, 4, 5], [1, 2, 3, 4, 6]) |> to_string
// -> [1, ..., 4, -5 +6]
Search Document