Rename split-loop-with-lambda to slice-with-lambda

The refactoring is now published as Slice on sammancoaching.org:
https://sammancoaching.org/refactorings/slice.html

- git mv ideas/split-loop-with-lambda -> ideas/slice-with-lambda
- rename learning-hour file and update frontmatter name
- update paths in tools/rehearse scripts and report title
- update prose: 'Split Loop with Lambda' -> 'Slice with Lambda'
  in learning hour, exercise READMEs, storyboard, solution comments
- link the published Slice refactoring from the pattern draft
This commit is contained in:
Your Name
2026-09-29 15:47:30 +00:00
parent 125bb7ad01
commit 77ae05c28c
114 changed files with 21 additions and 20 deletions
@@ -0,0 +1,35 @@
--- Run A+Q ---
session file: /tmp/rehearsal/runs/A+Q/session/2026-09-27T14-54-11-453Z_01a0e35b-fbfd-71d3-8ae9-9dcefb682f49.jsonl
model: Qwen/Qwen3.6-35B-A3B
session span: 127.1 s
assistant messages: 27
tool calls: 28 total
bash 17
read 8
edit 3
tokens input: 338864
tokens output: 10563
tokens cacheRead: 0
tokens cacheWrite: 0
tokens reasoning: 3385
tokens TOTAL (sum): 352812
--- /usr/bin/time -v (wall clock + max RSS) ---
Elapsed (wall clock) time (h:mm:ss or m:ss): 2:07.25
Maximum resident set size (kbytes): 272272
Exit status: 0
--- pi stdout (last 15 lines) ---
+ private List<Boolean> collectExpectedWeather(List<Instant> interestingDates,
+ LongFunction<Boolean> dayOffsetToWeather) {
+ List<Boolean> result = new ArrayList<>();
+ for (Instant interestingDate : interestingDates) {
+ scorer.updateSelection();
+ var forecastDate = Instant.parse("2023-04-26T14:00:00.000-07:00");
+ long daysForward = ChronoUnit.DAYS.between(forecastDate, interestingDate);
+ result.add(dayOffsetToWeather.apply(daysForward));
+ }
+ return result;
+ }
}
```
The code **compiles cleanly**. The test fails because the old `longRangeForecast(String)` signature no longer exists — which is expected per the task instructions.