What is Nostr?
dave /
npub1tsg…htk4
2023-02-10 08:37:56
in reply to nevent1q…39nk

dave on Nostr: fn common_char_functional<'a>(str1: &'a str, str2: &'a str) -> &'a str { let ...

fn common_char_functional<'a>(str1: &'a str, str2: &'a str) -> &'a str {
let common_chars = str1.chars().filter(|ch1| str2.contains(*ch1)).collect::<String>();
let result = Box::leak(common_chars.into_boxed_str());
result
}
Author Public Key
npub1tsgw6pncspg4d5u778hk63s3pls70evs4czfsmx0fzap9xwt203qtkhtk4