cadCAD-org / cadcad-ri

The Reference Implementation
https://cadcad.org
BSD 2-Clause "Simplified" License
18 stars 10 forks source link

drop_dimension method for spaces #33

Open mzargham opened 1 year ago

mzargham commented 1 year ago

proposing we add a method that can be applied to any space that will create a new space without one of its dimensions.

suppose

@space
class MySpace:
     a: int
     b: int

but then i did

MySpace = MySpace.drop_dimension('a')

the resulting space would be as if i had declared

@space
class MySpace:
     b: int