scala Range for Long

后端 未结 3 1013
长情又很酷
长情又很酷 2021-01-12 18:21

I\'m new to the Scala language.

I need Range for Long type.

I need a List of [1, 2, 3 ... 10000000] with step 1. If I use until/to I get an error because of

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-12 19:05

    You can instead use NumericRange[Long] from the standard library.

提交回复
热议问题