← concepts · the commons
concatenation shape
also known as concatenation shapes
5 moment(s) that assert this concept — showing 1–5 of 5
single sourceRests on a single channel — treat as a lead, verify independently
↣ how this spread over time →ACM SIGPLAN · youtube · en
1Product and concatenation shapes are modeled using records and variants, respectively, to support complex array structures.
“there's product shapes and concatenation shapes and these are respectively indexed by records and variants and they sort of denoted with these funny braces that sort of are similar to the corresponding standard notation for records and variants”
spoken · 347s · 2025-07-15
ACM SIGPLAN · youtube · en
2Variant indices allow selecting one of multiple components in a concatenation shape, with a tag and index within that component.
“the way you index with a variant type, so like a tagged value into an array of that sort of shape. This corresponds to selecting one of these components like left or center”
spoken · 429s · 2025-07-15
ACM SIGPLAN · youtube · en
3A concatenation shape with no components is the empty array.
“the concatenation that has no components is the empty array”
spoken · 451s · 2025-07-15
ACM SIGPLAN · youtube · en
4RGB image channel types can be labeled in a concatenation shape with specific tags (e.g., red, green, blue) and indexed using a channel tag.
“I can label these as part of a concatenation shape with appropriate sort of singleton uh cases because like there's no more information within except that which tag it is whether it's red, green or blue and then I can index into this with something like row 15 column 17 channel uh green”
spoken · 489s · 2025-07-15
ACM SIGPLAN · youtube · en
5Product and concatenation shapes behave like records, allowing dimension and component projection.
“product and concatenation shapes uh behave like records like up to typing like you specify like what each dimension is, what each component is, and they essentially just behave like records. You can also project the individual components and dimensions”
spoken · 536s · 2025-07-15