BANGKOK - Dozens of world leaders, including the prime ministers of Australia, India and Japan, the president of South Korea, and Chinese vice president Li Yuanchao, will be in Singapore on Sunday for the state funeral of the small country's first prime minister, Lee Kuan Yew.

Lee served as a role model for Asian politicians hoping to reproduce the magic that took Singapore from a colonial backwater to one of the world's most prosperous and efficient nations.

Funeral Sunday for Singaporean Leader Who Others Tried to Emulate

Lee died Monday at the age of 91 following a long illness. His casket is lying in state at Singapore's Parliament House through Saturday to allow the public to pay its last respects. Thousands lined the streets Wednesday as the flag-draped casket was slowly towed for hours on a gun carriage from Istana (the official residence of the largely ceremonial president) to Parliament House, where mourners patiently waited in a queue stretching two kilometers.

Funeral Sunday for Singaporean Leader Who Others Tried to Emulate

Lee served as prime minister from 1959, when Britain granted self rule, taking Singapore in and out of a troubled union with Malaysia before declaring independence in 1965. Lee stepped down in 1990 after becoming the longest-serving prime minister in the world. But he kept the leadership of his dominant People's Action Party until 1992 and in subsequent years remained Singapore's supreme figure as senior minister and then minister mentor.

Funeral Sunday for Singaporean Leader Who Others Tried to Emulate

His son, Lee Hsien Loong, became prime minister in 2004 and is still in that post.

One of the senior Lee's many admirers is former Thai prime minister Anand Panyarachun who said that as a Southeast Asian, he feels “a great sense of loss.”

“His wisdom, his advice, his insight have always been sought by leaders of other nations,” said Anand, who served as Thailand's prime minister in the early 1990's.

The current Thai prime minister, Prayuth Chan-ocha, who seized power in a coup last year, somewhat puzzlingly lamented Lee had worked too hard all his life and this is why the nonagenarian had died too young.

The retired general is to attend Lee's funeral where he might run into the man whose influence he wants to permanently eradicate from Thai politics -- self-exiled former prime minister Thaksin Shinawatra, ousted by the military in 2006 and a Lee protege, who sought to create a "Thailand Inc." in the image of his Asian mentor's "Singapore Inc."

Others from Asia, so far, also confirming their attendance at Sunday's state funeral: the presidents of Indonesia and Myanmar and the prime minister of Cambodia.

U.N. Secretary General Ban Ki-moon, a former South Korean foreign minister, issued a statement saying he was deeply saddened by Lee's death, calling him “a legendary figure in Asia.”

Autocrats in Asia envied Lee's ability to maintain a one-party government in a nanny state that eschewed liberalism, except for economic policies.

Curtis Chin, a former U.S. Ambassador to the Asian Development Bank, said in a VOA interview in Bangkok many of the Singaporean's less successful fellow leaders in the region failed to absorb his most important lessons.

“So when we think about what others can learn from Lee Kwan Yew they may be citing some things,” said Chin. “But unfortunately too many leaders of Asia today have not learned about the rule of law, the good governance, the accountability, the battle against corruption that Lee Kwan Yew also was all about.”

Contrasting Lee with authoritarian-style leader Mathathir Mohamad, who led neighboring Malaysia as prime minister between 1981 and 2003, Robert D. Kaplan, in his 2014 book , assessed the Singaporean as constituting a “more worthy model of leadership... without Mahathir's decidedly nasty prejudices and petty meanness while harboring a more acute strategic vision.”

Lee, a well-educated pragmatist, rejected the notion of an “Asian model” for development but articulated Asian values that, in his eyes, made individual rights subservient to collective security and growth.

Thus it is no surprise that over the decades many of China's leaders expressed admiration for the rapid transformation of Singapore under the leadership of Mr. Lee, an ethnic Hakka Chinese whose ancestral home is in Meizhou in southern China's Guangdong province.

Lee made “historical contributions to the bilateral relationship” between Beijing and Singapore, said China's foreign ministry spokesman Hong Lei.

“Lee Kuan Yew is a uniquely influential statesman in Asia. And he is also a strategist embodying oriental values and international vision,” said Hong.

The leader of Taiwan's ruling Kuomintang party, Eric Chu, noted Lee "offered Taiwan many of his ideas on city management."