Skip to main content

is_isomorphic

Function is_isomorphic 

Source
pub fn is_isomorphic(s: &str, t: &str) -> bool
Expand description

Check if two strings are isomorphic.

Takes two string slices an returns true or false based on whether they are isomorphic or not.

ยงExamples

Basic usage:

assert!(algorithmz::map::is_isomorphic("egg", "add"));

Another example:

assert!(!algorithmz::map::is_isomorphic("foo", "bar"));