Can a set have duplicate elements?

前端 未结 4 1903
醉酒成梦
醉酒成梦 2021-02-07 14:25

I have been asked a question that is a little ambiguous for my coursework.

The array of strings is regarded as a set, i.e. unordered.

I\'m not

4条回答
  •  庸人自扰
    2021-02-07 15:14

    "Sets are Iterables that contain no duplicate elements." https://docs.scala-lang.org/overviews/collections/sets.html

提交回复
热议问题