Ad
fn around(x: usize, y: usize) -> HashSet<(usize, usize)> {
    return [
        (Some(x), y.checked_add(1)),
        (Some(x), y.checked_sub(1)),
        (x.checked_add(1), Some(y)),
        (x.checked_sub(1), Some(y)),
    ]
    .iter()
    .filter_map(|(vv, hh)| vv.and_then(|vvv| hh.and_then(|hhh| Some((vvv, hhh)))))
    .collect();
}
Code
Diff
  • function returnhundred() {
      return (undefined +"")[2].charCodeAt();
    }
    • function returnhundred() {
    • return 10 ** 2;
    • return (undefined +"")[2].charCodeAt();
    • }