Skip to content

Commit

Permalink
Introduce helper trait types for lists and maps (#1026)
Browse files Browse the repository at this point in the history
  • Loading branch information
TristonianJones authored Sep 23, 2024
1 parent 6d1c0a2 commit 6c98875
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions common/types/traits/traits.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,15 @@ const (
// SubtractorType type support '-' operations.
SubtractorType
)

const (
// ListerType supports a set of traits necessary for list operations.
//
// The ListerType is syntactic sugar and not intended to be a perfect reflection of all List operators.
ListerType = AdderType | ContainerType | IndexerType | IterableType | SizerType

// MapperType supports a set of traits necessary for map operations.
//
// The MapperType is syntactic sugar and not intended to be a perfect reflection of all Map operators.
MapperType = ContainerType | IndexerType | IterableType | SizerType
)

0 comments on commit 6c98875

Please sign in to comment.