Reputation: 1
For example , for ( r in 1 : 6 ) { print r } returns "1,2,3,4,5 " ,excluding the right boundary .
However , between 1 : 6 returns true , meaning that " 6 " is inclued in the pair . Are the two contradictory ?
Upvotes: 0
Views: 14
Reputation: 23
Dlang is a multi-paradigm programming language. Besides functional programming and imperative programming, it supports SQL programming. In SQL, the right end of the between
operator is inclusive. In order to follow the convention of SQL, the pair of Dlang in between
is right closed.
Upvotes: 1