Ad
  • Custom User Avatar

    argh, I thought the depreciation is compounded ):

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    oh and this was done for rust

  • Custom User Avatar
    fn array_diff<T: PartialEq>(a: Vec<T>, b: Vec<T>) -> Vec<T> {
        a.iter()
            .filter(|incoming| !b.contains(incoming))
            .collect::<Vec<T>>()
    }
    

    I am having problem with the ownership, and the last collect() wouldn't work, may I know what went wrong?