jeffwack111 / Spiders

0 stars 0 forks source link

Make Sequences a parametric type #22

Closed jeffwack111 closed 4 months ago

jeffwack111 commented 4 months ago

I'd like to have different versions of show(s::Sequence) based on the type of s.items. The motivating use case for this is to display Sequences whose items are char as a pretty string.

For now show() is going to have an if else structure to mimic dispatch, but this feels like it should be handled by a parametric type.

jeffwack111 commented 4 months ago

done! should extend use of sequence structure to external rays and spider legs