Skip to content

Commit

Permalink
Introduce helper trait types for lists and maps
Browse files Browse the repository at this point in the history
  • Loading branch information
TristonianJones committed Sep 23, 2024
1 parent ac15d71 commit e95140f
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 e95140f

Please sign in to comment.