1

I use "attaswift/Deque" library. I have a double Deque;

var pointsZ =  Deque<Double>()

I want to use;

for (index,value) in pointsZ.enumerated(){
...
}

I got error "For-in loop requires EnumeratedSequence<Deque<Double>> to conform to Sequence" in Xcode 11.4.1. How can solve this problem?

uyarc
  • 579
  • 4
  • 17
  • 1
    Looks like you need to provide more information so people can help you. Where is `Deque` coming from? What's its definition and the definition of `enumerated`? Etc. Edit your question to add these details and someone will undoubtedly help you. – CRD Jun 14 '20 at 06:25
  • @CRD thanks for your useful comment. I edited my question. I solve my problem using the other method. – uyarc Jun 15 '20 at 06:32

1 Answers1

1

I change my for loop like;

for i in 0..<pointsZ.count {
               print(pointsZ[i])
 }

It solve my problem.

uyarc
  • 579
  • 4
  • 17