Skip to content

Commit 0e00477

Browse files
authored
Merge pull request #583 from atzedus/expr_plus_operator
feat: plus operator
2 parents 9d3b4c4 + 2d7ce77 commit 0e00477

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Include `shell.nix` for developers using [Nix](https://nixos.org/) to create development environments
1313
- Additional README content on how developers can use linting and unit testing to contribute
14+
- expr.Plus(target bob.Expression) operator added
1415

1516
## [v0.41.1] - 2025-09-02
1617

expr/chain.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ func (x Chain[T, B]) Minus(target bob.Expression) T {
113113
return X[T, B](leftRight{operator: "-", left: x.Base, right: target})
114114
}
115115

116+
// Addition
117+
func (x Chain[T, B]) Plus(target bob.Expression) T {
118+
return X[T, B](leftRight{operator: "+", left: x.Base, right: target})
119+
}
120+
116121
// Like operator
117122
func (x Chain[T, B]) Like(target bob.Expression) T {
118123
return X[T, B](leftRight{operator: "LIKE", left: x.Base, right: target})

0 commit comments

Comments
 (0)