Skip to content

Provides && and || operators for integers resulting from comparisons

Notifications You must be signed in to change notification settings

shawjef3/comparison-dsl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

comparison-dsl

Provides && and || operators for integers resulting from comparisons.

Instead of

if (c0 != 0) {
  c0
} else if (c1 != 0) {
  c1
} else c2

write

c0 && c1 && c2

.

Instead of

if (c0 == 0) {
  0
} else if (c1 == 0) {
  0
} else c2

write

c0 || c1 || c2

.

SBT Dependency

"me.jeffshaw.comparison" %% "comparison-dsl" % "1.0.1"

About

Provides && and || operators for integers resulting from comparisons

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages