Learn Practice Daily golf Reference
Search·Lesson 6 of 6·9 min·0/5 exercisesPro

Patch every lat/lng

The whole of track five against the clock: find each swapped stop with /lat: \zs- and n, put both numbers back (retype them, or swap them with dt,, P and dE), then sweep once more and find nothing.

Scene

Monday, 3:10 p.m. Eight stops in the rider logs have their latitude and longitude the wrong way round, and you know exactly where: /lat: \zs- beeps at every one. The evening rush starts at five, and the app reads these stops to plan the first routes.

Two numbers to swap on each line, eight lines. Finding them is done; now you dig.

From memory

Warm-up from earlier chapters

Two from earlier chapters, from memory, before the new idea. Two wrong tries show the answer.

Search for order as a whole word only.
press the keys…11 keys
1 of 2
Search for order as a whole word only.

The whole detector, on one card

Tune it and sweep (/ down, ? up), walk to the next beep and back (n N), aim it at your feet (* #), dig up to a beep (d/), choose where to stand (/lat/e), and tune it finer (\zs, \d, \<). The card shows the moves, each from the same cursor.

/lat↵
{ stop: 1044, zone: "Edgewater", lat: 25.8001, lng: -80.1887 },
{ stop: 1047, zone: "Downtown", lat: -80.1937, lng: 25.7743 },
{ stop: 1050, zone: "Coral Way", lat: 25.7505, lng: -80.2409 },
?stop↵
{ stop: 1044, zone: "Edgewater", lat: 25.8001, lng: -80.1887 },
{ stop: 1047, zone: "Downtown", lat: -80.1937, lng: 25.7743 },
{ stop: 1050, zone: "Coral Way", lat: 25.7505, lng: -80.2409 },
*
{ stop: 1044, zone: "Edgewater", lat: 25.8001, lng: -80.1887 },
{ stop: 1047, zone: "Downtown", lat: -80.1937, lng: 25.7743 },
{ stop: 1050, zone: "Coral Way", lat: 25.7505, lng: -80.2409 },
#
{ stop: 1044, zone: "Edgewater", lat: 25.8001, lng: -80.1887 },
{ stop: 1047, zone: "Downtown", lat: -80.1937, lng: 25.7743 },
{ stop: 1050, zone: "Coral Way", lat: 25.7505, lng: -80.2409 },
/lat:␣\zs-↵
{ stop: 1044, zone: "Edgewater", lat: 25.8001, lng: -80.1887 },
{ stop: 1047, zone: "Downtown", lat: -80.1937, lng: 25.7743 },
{ stop: 1050, zone: "Coral Way", lat: 25.7505, lng: -80.2409 },
One press each from zone on the Downtown stop. * and # beep at the next and previous zone.

Two ways to put them back

On a swapped line, each number sits in the other's place. The familiar way: change each number and type the right one, ct, for the latitude, then cE on the longitude. Any edit you know counts; only the finished line is checked.

There's also a way with nothing typed by hand, using the one jar (the unnamed register). With the cursor on the minus: dt, digs up the wrong latitude into the jar, f2 P reburies it in front of the other number, l dE digs that one up, and F, P reburies it in the first hole. Twelve keys, no typos possible. Optional: use it if you like it.

Before
{ stop: 1047, zone: "Downtown", lat: -80.1937, lng: 25.7743 },
dt,
{ stop: 1047, zone: "Downtown", lat: , lng: 25.7743 },
f2P
{ stop: 1047, zone: "Downtown", lat: , lng: -80.193725.7743 },
ldE
{ stop: 1047, zone: "Downtown", lat: , lng: -80.1937 },
F,P
{ stop: 1047, zone: "Downtown", lat: 25.7743, lng: -80.1937 },
Dig, rebury, dig, rebury. The jar holds one number at a time, so each one is back in the ground before the next is dug up.
Check yourself

Dig twice, then rebury?

1 { stop: 1047, zone: "Downtown", lat: -80.1937, lng: 25.7743 },
NORMAL
Keys pressed: dt,f2dEF,P

You dig up the wrong latitude (dt,), then go straight on and dig up the other number (f2 dE), then go back and put (F, P). What does the line end with?

Pick an answer (or press its number), then watch the engine prove it.
1// rider logs, Friday: one stop per line
1export const STOPS = [
2 { stop: 1041, zone: "Little Havana", lat: 25.7656, lng: -80.219 },
3 { stop: 1044, zone: "Edgewater", lat: 25.8001, lng: -80.1887 },
4 { stop: 1047, zone: "Downtown", lat: -80.1937, lng: 25.7743 },
5 { stop: 1050, zone: "Coral Way", lat: 25.7505, lng: -80.2409 },
6 { stop: 1053, zone: "Wynwood", lat: 25.8005, lng: -80.1994 },
7 { stop: 1056, zone: "Brickell", lat: -80.1917, lng: 25.7663 },
8 { stop: 1059, zone: "Little Havana", lat: 25.7656, lng: -80.219 },
NORMALLoading the editor…1:1
Boss round

Stage 1 · The first four

3:15. The first four swapped stops, top to bottom. One search to find a minus, then put the two numbers back the right way round, by typing them or with the jar; n takes you to the next one. The hint has the typing-free swap.

Stuck? Show a hint/lat: \zs- ↵, then on each line the swap dt,f2PldEF,P (or ct, and type the latitude, then cE and type the longitude), and n to the next
1 of 4Fix the marked spots · 2 left
1// rider logs, Friday: one stop per line
1export const STOPS = [
2 { stop: 1041, zone: "Little Havana", lat: 25.7656, lng: -80.219 },
3 { stop: 1044, zone: "Edgewater", lat: 25.8001, lng: -80.1887 },
4 { stop: 1047, zone: "Downtown", lat: -80.1937, lng: 25.7743 },
5 { stop: 1050, zone: "Coral Way", lat: 25.7505, lng: -80.2409 },
6 { stop: 1053, zone: "Wynwood", lat: 25.8005, lng: -80.1994 },
7 { stop: 1056, zone: "Brickell", lat: -80.1917, lng: 25.7663 },
8 { stop: 1059, zone: "Little Havana", lat: 25.7656, lng: -80.219 },
9 { stop: 1062, zone: "Edgewater", lat: -80.1887, lng: 25.8001 },
10 { stop: 1065, zone: "Downtown", lat: 25.7743, lng: -80.1937 },
11 { stop: 1068, zone: "Coral Way", lat: 25.7505, lng: -80.2409 },
12 { stop: 1071, zone: "Wynwood", lat: -80.1994, lng: 25.8005 },
13 { stop: 1074, zone: "Brickell", lat: 25.7663, lng: -80.1917 },
14 { stop: 1077, zone: "Little Havana", lat: 25.7656, lng: -80.219 },
15 { stop: 1080, zone: "Edgewater", lat: -80.1887, lng: 25.8001 },
16 { stop: 1083, zone: "Downtown", lat: 25.7743, lng: -80.1937 },
17 { stop: 1086, zone: "Coral Way", lat: -80.2409, lng: 25.7505 },
18 { stop: 1089, zone: "Wynwood", lat: 25.8005, lng: -80.1994 },
19 { stop: 1092, zone: "Brickell", lat: 25.7663, lng: -80.1917 },
20 { stop: 1095, zone: "Little Havana", lat: -80.219, lng: 25.7656 },
21 { stop: 1098, zone: "Edgewater", lat: 25.8001, lng: -80.1887 },
22 { stop: 1101, zone: "Downtown", lat: 25.7743, lng: -80.1937 },
23 { stop: 1104, zone: "Coral Way", lat: -80.2409, lng: 25.7505 },
24 { stop: 1107, zone: "Wynwood", lat: 25.8005, lng: -80.1994 },
25 { stop: 1110, zone: "Brickell", lat: 25.7663, lng: -80.1917 },
26];
NORMALLoading the editor…1/40.0s1:1

This exercise needs a keyboard. Read on, and play it at your computer.

Boss round

Stage 2 · The last four

4:20. Four to go, and dispatch is already loading the evening routes. From the top of the file, on your own: find each swapped stop and put it right, any way you like.

Stuck? Show a hint
Pro
The rest of this lesson is in Pro

The first exercise of every lesson is free. Pro unlocks the rest, every track, for good.

See Pro

This exercise needs a keyboard. Read on, and play it at your computer.

One last sweepFinish the exercise above to see it.
From memory

The whole track, from memory

Seven situations from today.

Search down the file for user.
scroll here, then press the keys6 keys
1 of 7
Search down the file for user.

Extra practice optional

The chapter is done. These rounds keep going as long as you like: stop whenever it stops being useful.

Endless

More swaps

Endless swapped coordinates across the zones. Fix each one any way you like: the recipe, or ct, and type the numbers.

Pro
The rest of this lesson is in Pro

The first exercise of every lesson is free. Pro unlocks the rest, every track, for good.

See Pro

This exercise needs a keyboard. Read on, and play it at your computer.