admin管理员组

文章数量:1415467

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 ?

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 ?

Share Improve this question asked Feb 21 at 3:11 da Linda Lin 1
Add a comment  | 

1 Answer 1

Reset to default 0

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.

本文标签: betweenDolphinDBWhy does the semantics of pair different in different usage scenariosStack Overflow