
В пакете стандартной библиотеки slices есть функция Backward — итератор по элементам среза в обратном порядке:
func Backward[Slice ~[]E, E any](s Slice) iter.Seq2[int, E]
Если вы не сильно погружены в тему дженериков и итераторов, то естественная реакция при взгляде на сигнатуру этой функции (и других из пакета slices) — «а что, нельзя попроще как-то было?».
Чтобы ответить на этот вопрос, проведем мысленный эксперимент. Представим себя в роли нашего далекого предка, живущего в доитераторную эпоху, который решает реализовать Backward с нуля.
Exclusive: Director general accuses corporations of obstructing efforts to tackle obesity crisis after investigation by Guardian and others
The world’s biggest ultra-processed food corporations are hindering global efforts to tackle the obesity crisis by suing governments that try to promote healthier diets, the head of the World Health Organization has said.
Tedros Adhanom Ghebreyesus, the WHO director general, accused global food companies of obstructing the adoption of vital public health measures and costing countries billions of dollars in healthcare and legal costs in the process.
Continue reading...Previously agreed sale to Daniel Kretinsky falls through
Vanessa Gold, daughter of former chair, is selling up
A consortium led by Amanda Staveley has reached an agreement to buy a 25.1% stake in West Ham after Vanessa Gold, daughter of the former chair David Gold, agreed to sell her family’s shares in the Championship club.
The move by the businesswoman who helped lead the Saudi consortium takeover of Newcastle comes after a previously agreed sale to fellow shareholder and Czech businessman Daniel Kretinsky fell through.
Continue reading...New head coach needs to use the transfer market with defensive cover vital as injuries hamper US pre-season tour
“Faster, faster,” bellowed Andoni Iraola throughout the open training session Liverpool held in Chicago on Friday. His first pre-season tour as Liverpool head coach ends at the city’s famous Soldier Field Stadium on Sunday, with a friendly against Leeds, and “faster, faster” could apply to all aspects of the club’s preparations for a new Premier League campaign that begins in three weeks’ time.
Iraola was in his element as he immersed himself at the centre of every training drill that Liverpool performed at Chicago Fire’s Endeavor Health Performance Center, their base for the past two weeks in the US. “Faster, faster” was the new head coach’s instruction to his players as three teams of seven worked on their pressing games. He also shouted it when they walked over to a different pitch, recently vacated by Robert Lewandowski and his new Chicago Fire teammates, to work on offensive and defensive set-piece routines. Sprints were demanded following every rondo.
Continue reading...Max Blumenthal says he was singled out at airport after Trump ally Laura Loomer targeted him in online posts
When reporter Max Blumenthal went to a cafe in Tehran one night a few weeks ago to upload videos from his reporting on the funeral of Iran’s supreme leader Ali Khamenei, he began seeing social media posts from Trump ally Laura Loomer targeting him, including one that suggested he should be “taken off the plane by US Marshalls when he lands back in the US … [and] detained”.
“I began to prepare myself for being harassed on my return,” Blumenthal said.
Continue reading...Max Blumenthal says he was singled out at airport after Trump ally Laura Loomer targeted him in online posts
When reporter Max Blumenthal went to a cafe in Tehran one night a few weeks ago to upload videos from his reporting on the funeral of Iran’s supreme leader Ali Khamenei, he began seeing social media posts from Trump ally Laura Loomer targeting him, including one that suggested he should be “taken off the plane by US Marshalls when he lands back in the US … [and] detained”.
“I began to prepare myself for being harassed on my return,” Blumenthal said.
Continue reading...10-man Spurs win pre-season match 2-1 in Sydney
‘He’s important, it’s not easy to find another striker’
Roberto De Zerbi wants Richarlison to stay at Tottenham, but says the striker, who has been linked with a move away, is still unsure about his future.
The Brazilian scored a last-gasp winner as 10-man Tottenham defeated Chelsea 2-1 in a pre-season friendly in Sydney, with Kevin Danso sent off just minutes after coming on as a half-time substitute.
Continue reading...Uefa’s call for a boycott and declaration of no-confidence must be the opening salvos in push to dethrone game’s global leader
There is no time to dance around the subject. Gianni Infantino must stand down as Fifa president or otherwise be legally removed. No fresh chances can be made available for an official who has demolished trust in football’s integrity and governance, trashing all remaining credibility of the body that oversees the world’s most-cherished sport.
Infantino was forced into a humiliating climbdown on Saturday morning when he accepted the failure of his plan to sell off portions of the World Cup to private investment. He resolved to resume dialogue about football’s growth “in the spirit of shared interest in our game”. But such a naked attempt to save his own skin cannot hold. Every day Infantino remains in power is a fresh stain on an institution whose reputation is on the floor.
Continue reading...Police also released notes received from presumed abductors of mother of Today anchor Savannah Guthrie
The family of Nancy Guthrie issued a new appeal on Saturday for information on the whereabouts of their missing grandmother, six months after she disappeared from her home in Tucson, Arizona, and a day after local investigators released two purported ransom notes.
“Six months ago, someone took her out of her bed in the dead of night. We have lived every moment, every breath, and every heartbeat in agony and despair ever since,” a post on Instagram said.
Continue reading...Police also released notes received from presumed abductors of mother of Today anchor Savannah Guthrie
The family of Nancy Guthrie issued a new appeal on Saturday for information on the whereabouts of their missing grandmother, six months after she disappeared from her home in Tucson, Arizona, and a day after local investigators released two purported ransom notes.
“Six months ago, someone took her out of her bed in the dead of night. We have lived every moment, every breath, and every heartbeat in agony and despair ever since,” a post on Instagram said.
Continue reading...Cunningham says rallies aren’t a distraction
Supporters gather outside second straight game
White: team wants focus to stay on basketball
Sophie Cunningham says she’s unconcerned that the rallies against transgender participation in women’s sports that have accompanied the Indiana’s Fever’s recent games are a distraction for the WNBA team.
Cunningham made the comments before the Fever’s game Friday night against the Portland Fire. Outside, a group rallied for the second straight game in support of Cunningham and her recent comments about transgender athletes.
Continue reading...After declaring ‘anti-weaponization’ fund ‘dead’, Trump reverses and says he’ll revive it despite Senate opposition
The US Senate judiciary committee has scheduled a meeting early next week to consider Todd Blanche’s nomination for attorney general, as Donald Trump promised to revive the controversial $1.8bn “anti-weaponization” fund.
The meeting, set for Tuesday, comes as Blanche’s confirmation has stalled over a dispute between the president and outgoing Republican senators John Cornyn and Thom Tillis, who are seeking written confirmation that the justice department would not establish the proposed fund.
Continue reading...
Слоганы, фирменные цвета бренда и даже мерч всё чаще становятся объектами интеллектуальной собственности. Компании пытаются зарегистрировать своё «HR-лицо», чтобы повысить узнаваемость, усложнить жизнь конкурентам и защитить себя от переманивания кадров. Рассказываем в нашей статье об этом новом тренде.
Читать далееAfter declaring ‘anti-weaponization’ fund ‘dead’, Trump reverses and says he’ll revive it despite Senate opposition
The US Senate judiciary committee has scheduled a meeting early next week to consider Todd Blanche’s nomination for attorney general, as Donald Trump promised to revive the controversial $1.8bn “anti-weaponization” fund.
The meeting, set for Tuesday, comes as Blanche’s confirmation has stalled over a dispute between the president and outgoing Republican senators John Cornyn and Thom Tillis, who are seeking written confirmation that the justice department would not establish the proposed fund.
Continue reading...The Reform UK leader is keeping a low profile and his approval ratings have sunk since Burnham took office. What’s the outlook for the Clacton byelection?
This time last year, Nigel Farage was making the political weather. His freewheeling weekly press conferences filled a sparse news agenda, setting out eye-catching policies on areas such as crime and immigration. This year? Less so.
The Reform UK leader is expected to hold a press conference in London next week. If so, it would be just his third since May’s local elections and the first in the capital in more than three months. The man who was everywhere now appears to be in hiding.
Continue reading...