Function comonoid::duplicate [−] [src]

pub fn duplicate<T>(a: T) -> (T, T) where T: Clone

Takes ownership of a value and returns a tuple of clones.