Hello,
I have made this function :
calculateNewFloor: aFloor index: index
"comment stating purpose of message"
|action floor |
action:= SantaAction getActionFor: aFloor. floor := action
doMovementFor: aFloor
now I want to send a message to this function :
findBasement: input2
"solution to part1 of this challenge"
input2 withIndexDo: [ :element :index | |action| action:=
SantaFloorAction getActionFor: element. floor := action
calculateNewFloor: floor .. ].
^ counter
but how do I get the second argument in this
Roelof