正在加载视频...

视频加载失败

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 年前