• 8 Posts
  • 52 Comments
Joined 8 months ago
cake
Cake day: May 9th, 2024

help-circle



  • tunatodailygames@lemmy.zipTravel.earth
    link
    fedilink
    arrow-up
    1
    ·
    25 days ago
    #travle #713 +1
    🟧✅✅✅✅✅✅✅✅✅
    https://travle.earth/
    
    Tap for spoiler

    I did Brazil for my first guess… because you can always go either Brazil->Columbia or Peru->Columbia to get to Central America. But I couldnt remember the exceptions, which are Venezuela and Ecuador, which border Columbia directly 🫠















  • Something i didnt know for a long time (even though its mentioned in the book pretty sure) is that enum discriminants work like functions

    #[derive(Debug, PartialEq, Eq)]
    enum Foo {
        Bar(i32),
    }
    
    let x: Vec<_> = [1, 2, 3]
        .into_iter()
        .map(Foo::Bar)
        .collect();
    assert_eq!(
        x,
        vec![Foo::Bar(1), Foo::Bar(2), Foo::Bar(3)]
    );
    

    Not too crazy but its something that blew my mind when i first saw it












Moderates