• 0 Posts
  • 5 Comments
Joined 10M ago
cake
Cake day: Mar 23, 2022

help-circle
rss

Glad to see the USA’s plan to support their “Southern Neighbourhood” is via sanctioning them. A classic, foolproof strategy that never causes unjust suffering.

I really like this short video (15:07 in length) of Fred M’membe and Kyeretwie Opoku discussing China vs the West’s relationship with Africa and the historical context, and China’s history of helping Africa when the West refused.

Although it pains me to say that the US Embassador to the UN is right about something, I can agree that the “choice would be simple”.


He’s the image for this Clickhole article titled “Heartbreaking: The Worst Person You Know Just Made A Great Point”


Caffeine makes me sleepy, and I don’t like the taste of coffee, but I love tea, so sometimes I’ll drink black tea before going to sleep


Typed functional languages usually do, as mentioned by others. This is form of Algebraic Data Type called a Sum Type (as oppose to a Product type, which is basically a normal struct).

Here’s some examples of creating a binary tree in different languages (also Lemmy’s code formatter is terrible)

Examples

Haskell

data Tree a = Empty | Leaf a | Node (Tree a) (Tree a)

F#

type Tree<'a> = Empty | Leaf of 'a | Node of (Tree<'a> * Tree<'a>)

Scala

sealed trait Tree[+A]

case class Empty[A]() extends Tree[A]

case class Leaf[A](a: A) extends Tree[A]

case class Node[A](left: Tree[A], right: Tree[A]) extends Tree[A]

Rust

enum Tree<T> {

​ Empty,

​ Leaf(T),

​ Node(Box<Tree<T>>, Box<Tree<T>>),

}


It’s the character mem in the Hebrew alphabet, but I’m not sure what the meaning is in this context