Hi In the code below I want to the value of (currentNames includes: v) If I remember correctly in the past I could position my cursor and say run up to caret. But I cannot find it. valuesOnlyBy: aRowKey | valueNames | valueNames := self valueNamesOf: aRowKey. (self rowKeysExcept: aRowKey) do: [ :eachRowName | | currentNames | self halt. currentNames := self valueNamesOf: eachRowName. valueNames do: [ :v | (currentNames includes: v) ifTrue: [ valueNames remove: v ]. valueNames isEmpty ifTrue: [ ^ #() ] ] ]. ^ valueNames BTW Does anybody understand what through is doing and how to use it? I do not understand the fly by help :(((((((((((((((( Nor when I use it. Stef
"Run to here" -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On May 25, 2017, at 4:15 PM, Stephane Ducasse <stepharo.self@gmail.com> wrote:
Hi
In the code below I want to the value of (currentNames includes: v) If I remember correctly in the past I could position my cursor and say run up to caret. But I cannot find it.
valuesOnlyBy: aRowKey | valueNames | valueNames := self valueNamesOf: aRowKey. (self rowKeysExcept: aRowKey) do: [ :eachRowName | | currentNames | self halt. currentNames := self valueNamesOf: eachRowName. valueNames do: [ :v | (currentNames includes: v) ifTrue: [ valueNames remove: v ]. valueNames isEmpty ifTrue: [ ^ #() ] ] ]. ^ valueNames
BTW Does anybody understand what through is doing and how to use it? I do not understand the fly by help :(((((((((((((((( Nor when I use it.
Stef
Tx Alex! I find the place of the operations a bit confusing On Thu, May 25, 2017 at 10:22 PM, Alexandre Bergel <alexandre.bergel@me.com> wrote:
"Run to here"
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On May 25, 2017, at 4:15 PM, Stephane Ducasse <stepharo.self@gmail.com> wrote:
Hi
In the code below I want to the value of (currentNames includes: v) If I remember correctly in the past I could position my cursor and say run up to caret. But I cannot find it.
valuesOnlyBy: aRowKey | valueNames | valueNames := self valueNamesOf: aRowKey. (self rowKeysExcept: aRowKey) do: [ :eachRowName | | currentNames | self halt. currentNames := self valueNamesOf: eachRowName. valueNames do: [ :v | (currentNames includes: v) ifTrue: [ valueNames remove: v ]. valueNames isEmpty ifTrue: [ ^ #() ] ] ]. ^ valueNames
BTW Does anybody understand what through is doing and how to use it? I do not understand the fly by help :(((((((((((((((( Nor when I use it.
Stef
participants (2)
-
Alexandre Bergel -
Stephane Ducasse