between - DolphinDB:Why does the semantics of pair different in different usage scenarios? - Stack Overflow

For example , for ( r in 1 : 6 ) { print r } returns "1,2,3,4,5 " ,excluding the right boundary .

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745169051a4614809.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信