Is there a good way to get a generic function to dispatch on the car of a list?
I've been working on a symbolic algebra program, and at the moment am storing a lot of data as lists with different keywords as the car
s to indicate type. For example, I have simplices stored as '(:simplex #(0 1 2))
, and I have something I'm calling steps for the time being stored as '(:step #(0 1 0 1))
. I would like to be able to take the dimension and boundary of both of these, ideally using some built in dispatch mechanism.