MHD
banner
mhd.codes
MHD
@mhd.codes
certified typescript lover boy 🧙‍♂️ | maintainer @codiume
Arrays are like standard JavaScript arrays. a bag of elements that can grow or shrink.

Tuples, on the other hand, are fixed in length and type. They know exactly how many elements they contain and the specific types of elements at each position.
January 3, 2025 at 12:49 PM
By the way, here’s the usual way to get the last element of a tuple:
December 30, 2024 at 5:46 PM
Here’s what’s happening in this code: we’ve created a tuple that’s one element longer than the original T. Now, the length of the original tuple (T["length"] == 4) becomes our index, pointing to the last element of the newly created tuple.
December 30, 2024 at 5:46 PM
tsup
December 22, 2024 at 9:45 PM
I imagine you saying the same thing about bsky
December 20, 2024 at 2:49 PM
December 18, 2024 at 9:44 AM
Yeah, today’s challenge is much easier. 16 was tough, and the incorrect tests made it worse, I spent almost three hours trying to make it work.
December 17, 2024 at 11:02 AM
even with the help of all LLM's I'm not able to pass test 4
December 16, 2024 at 2:36 PM
15 was hard, tbh. I got to the final solution through brute force only.
December 16, 2024 at 10:12 AM