2min chapter

The Array Cast cover image

Leslie Goldsmith, from I.P. Sharp to KX

The Array Cast

CHAPTER

APL Data Type - What's the Difference?

The NAR specification has an actual primitive that uses all characters with spaces and all numbers with zeros. That's literally called type off. But again, doesn't care about internal representation at all. It exists still in the APL, but only available by changing that quad ML,. Although you can get the same effect because of the nested array system preserving the internal types. You can only have an array one element that has length zero. So there's always an element that keeps the type. And so if you enclose the array, reshape it to length zero, and then take the first element, then that coerces out a sort of typical array of the same structure. With that

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode