Hook
Generics Lyrics


We have lyrics for 'Hook' by these artists:


BlackHawk The first thing she done when they set her free From…
Blues Traveler It doesn't matter what I say So long as I sing…
City of Prague Philharmonic Orchestra / Paul Bateman Start spreading the news I'm leaving today I want to be a…
comp._o Spectacular cardiovascular attacker! Shaq's on the track wit…
Fabiø Guerra Uno nueve, diez y nueve año de habitar, Una nueve, con…
G. Fitkin Imma get the ball what I do I never fumble Ion…
Gemini Norawit เลือกได้ไหมให้ฉันเลือกอะไรได้ไหม หากว่าฉันเลือกไม่ได้ งั้นก็…
Grant Lee Buffalo There's one thing I tell you friend I don't believe in…
INSTASAMKA Мой hook on the black, в моем рту белый снег My…
Jon Brion It should be boredom by now I know the tricks of…
Kind of Like Spitting You so complete, so much cooler than me. you will…
Kizz Daniel Mad oh Yo Moti hook e hook (Hook e hook) Ani moti hook e…
Mechanizacja 2.0 My name is Jay Ice out with chains You know i'm coming…
Moon Bounce I know you got your ride or die clique And I'm…
O.d.'s Boy I turn these swoots out Every ex I had's a…
PJ Harvey I was blind I was lame I was nothing 'til you…
Refused The bait, the prey, the mice Debate, the method of demise De…
Reza Pishro گوشاتونو تیز کنید من که اینجا واستادم قد یه حبسه ابدی…
Supa I'm sipping Fiji water lounging in the tropics If it ain't…
The G-Spot Imma get the ball what I do I never fumble Ion…
The O.D.'s She just tryna hook up Tryna get her mood up She don't…
thebandknives How many rules you gotta break Before your god will leave…
y.e We could do it like how we used to with…
[V.M.C.G] I didn't invented and I wouldn't steal a loaf of…



몰리디 (Molly.D) Melodica Quartet Yeah, I know they looking for me Think I'm…


The lyrics are frequently found in the comments by searching or by filtering for lyric videos
Genre not found
Artist not found
Album not found
Song not found
Most interesting comments from YouTube:

@andrew-burgess

lol, you're so spot-on. I've had the same conversation in my head multiple times.

But the intersection is smaller, and only what is common; the union is broader, just like you'd expect.

type toys = "ball" | "bat" | "shovel" | "bucket";
type events = "ball" | "gala" | "soiree" | "benefit"

type OnlyBall = toys & events;
type AllItems = toys | events;

Dunno if this makes it more or less confusing ... let me know if this would be a good video topic!



@andrew-burgess

One mental model that's helped me with this is that even though the type itself seems broader (since there are more fields), the set of values that match that type is a much smaller set, because it now has to match more fields.

For example:

type HasName = { name: string };
type HasAge = { age: number };

type HasNameAndAge = HasName & HasAge;
type HasNameOrAge = HasName | HasAge;

const a = { name: "Andrew" };
const b = { age: 100 };
const c = { name: "Andy", age: 200 };

// HasName: a, c
// HasAge: b, c
// HasNameAndAge: c
// HasNameOrAge: a, b, c

The types `HasName` and `HasAge` will be matched by two objects. HasNameOrAge is a union, and therefore matches a broader set of shapes: all 3 shapes. HasNameAndAge is an intersection, and so matches a narrower set of only 1 shape.

I learned a lot of this from this blog post: https://ivov.dev/notes/typescript-and-set-theory



All comments from YouTube:

@andrew-burgess

👋there are more great ways to use generics, so I wrote about them here: https://shaky.sh/ts-generic-utils/

@rolikaseventysix

I've discovered your channel a few days ago and started to watch all your videos. You're are amazing buddy! State of the art content and the way you explain everything to the detail is unbeatable! The length of your videos also fits me a lot. Thank you and keep doing the good stuff!

@JosimarBezerra-fx8wb

For ages I've been coming across tutorials and articles on this topic but this video is exactly what I've been looking for. I can finally say that now I totally got my head around how generics work in TypeScript. Thank you Andrew for making this incredibly helpful video. You've definitely gotten my subscription. Keep up with the great content.

@monty_2969

Had read the official docs numerous times and had watched several vids regarding generics in TS. But couldn't develop a firm mental model about the same like your vid helped me develop. Amazing explanation man ! 👌

@DemPilafian

One of the key things that made this tutorial awesome is the excellent "job queue" example. Using a simple but realistic example is a million times more helpful than using the typical meaningless placeholders of "foo", "bar", "test1", "test2", and "asdf".

@codecifra

Dude you’re good at explaining things. Keep it up! 💯 Glad I discovered your channel. Btw, will you make a video on types vs interfaces? Or do you have a short explanation on when to use one over the other? Thank you!

@andrew-burgess

I’m working on that video right now :) should be out some time in the next few weeks.

@TheDanthelion

Great practical example, really helped clear things up

@JuicyBenji

Why have I watched like 10 videos on the subject of Generics but only now understanding it. You did a very good job explaining this, THANKS !

@RayanMADAO

Amazing thanks for helping me understand generics. I have a more intuitive feel for them now.

More Comments

More Versions