Загрузка видео...

Не удалось загрузить видео

На главную

Ok, my brain is exploding.

622,939 просмотров • 3 лет назад •via X (Twitter)

Комментарии: 9

Фото профиля Gabriel Vergnaud
Gabriel Vergnaud3 лет назад

Here is the code if you want to play with *Higher Order Type Level Functions* (or Higher Kinded Types if you prefer) 👇

Фото профиля Gabriel Vergnaud
Gabriel Vergnaud3 лет назад

you may find this interesting, I'm experimenting with the brilliant idea shared by @ecyrbedev to encode lambdas at the type level

Фото профиля Gabriel Vergnaud
Gabriel Vergnaud3 лет назад

I'm not done lol

Фото профиля Gabriel Vergnaud
Gabriel Vergnaud3 лет назад

The fact that this is possible is absolutely amazing

Фото профиля Gabriel Vergnaud
Gabriel Vergnaud3 лет назад

Starting to feel like taking a day off to create a type-level parser combinator library that would make creating type-safe DSLs easier... 🤔

Фото профиля Gabriel Vergnaud
Gabriel Vergnaud3 лет назад

And this is how HOTScript was born 👉

Фото профиля Gabriel Vergnaud
Gabriel Vergnaud3 лет назад

I've implemented most utility functions on array: FlatMap, Drop, Take, TakeWhile... Starting object helper functions now 🧑‍💻

Фото профиля Gabriel Vergnaud
Gabriel Vergnaud3 лет назад

Just found a very nice way of implementing currying/partial application. I'm using the same `Add` function, but with a 0 or 1 argument in function of the context 👇

Фото профиля Gabriel Vergnaud
Gabriel Vergnaud3 лет назад

HOTScript has a pretty good collection of object utiles now: FromEntries, Entries, MapValues, MapKeys, GroupBy, Assign, Pick, PickBy, Omit, OmitBy... onto Strings and Unions now 🚀

Похожие видео

SHOEBODY IS TRAPPED IN MY BRAIN!!
0:41

Sensitive content

SHOEBODY IS TRAPPED IN MY BRAIN!!

TomCatEye

384,048 просмотров • 1 год назад