## Ex02 Task01: Should we solve left or right first?

Moderatoren: pmueller, SE - Design and Construction

GS-812
Windoof-User
Beiträge: 30
Registriert: 25. Apr 2015 12:47

### Ex02 Task01: Should we solve left or right first?

Hi,

in 2-PL-Design-Style page 26

{Iter, Lin(RicjIterator) >> Lin(StringInterator)}

gets in the next step the right solved

{Iter, Lin(RicjIterator) >> {StringInterator, Lin(AbsIterator)}

whereas

in the sample at Tuesday

Lin(D) = {D, {Lin(B)} >> Lin(C)}
= {D, {B, Lin(A)} >> Lin(C)}
= {D, {B, A,AnyRef, Any} >> Lin(c)}
= ...
= {D, {B,A, AnyRef, Any} >> {C,A,AnyRef, Any}}
= {D,B, {A, AnyRef, Any} >> {C,A,AnyRef, Any}} // as B is not in {C,A,AnyRef, Any}
= {D,B, {AnyRef, Any} >> {C,A,AnyRef, Any}} // as A is in {C,A,AnyRef, Any}
= {D,B, C, A, AnyRef, Any}} // {AnyRef, Any} is in {C,A,AnyRef, Any}

the left first solved.

I sovled it in the task with right first.

Is both ok?

meichholz
Moderator
Beiträge: 167
Registriert: 30. Mär 2016 08:28

### Re: Ex02 Task01: Should we solve left or right first?

Hi,

yes, both is okay.

Best,
Matthias