Try to keep your functions pure. All functions should ideally produce no side-effects, use no outside data and return new objects instead of mutating existing ones.
请尽量保持你函数的纯洁性。所有的函数理想状态下都应该无副作用,请不要使用外部数据,同时返回的应该是一个新的对象而不是改变已有的。
The students return in October for the start of the new academic year.
学生于十月返校,开始新学年的学习。
Often on her return, the old woman stopped by for morning coffee and to see her new grandchild.
老大太往往一回来,就要顺便进来坐坐,喝点早咖啡,同时也看看她新添的孙儿。
When you study there, you will have to face challenges in everyday life that you have never experienced before, but after a year abroad, you will return with a new look at life—and at yourself.
你在那里学习时,将不得不面对日常生活中从未经历过的挑战,但经过一年的国外生活,你将会以新的面貌、新的自我回归。
Return to Step 2, this time selecting a new experience.
返回第2步,这次是选择一个新的经历。
At the end of the day, it's up to both people if they decide to get married and return to New Zealand.
比赛最后一天,获胜者是否愿意与他挑选的新娘结婚甚至返回新西兰,要看他们个人的决定。
To simplify this example, we'll just add a new class whose methods return some simple data.
为了简化这个示例,我们添加了一个新类,它的方法返回一些简单数据。
All of these types of methods return a new string, never changing the receiver of the message.
所有这类方法都返回一个新字符串,而从来不会改变消息的接收者。
Later, her father left the family to return to New Zealand, leaving her mother to raise the children.
后来,她爸爸抛弃妻子返回了新西兰,留下她妈妈独自一人抚养孩子。
A new service could return the new extension.
新服务可以返回这个新扩展。
The following week the same contestants return with new accents, new jaw lines, new walks and new attitudes just to please their critics.
下一周,同样的选手再次回到舞台,展示新的腔调、新的外形、新的台步和新的态度,为的只是取悦他们的批评者。
Old services would never return the new fields, though new services might.
旧客户端永远不返回新字段,而新服务可以。
He made a triumphant return to New York in 1937, playing at several clubs and appearing on national radio shows.
1937年他成功返回纽约,在几家俱乐部演出,还出现在了一些国家广播节目中。
You also return the location of the new resource in the HTTP response header.
还会在HTTP资源头中返回新资源的位置。
Years earlier, she had urged him to resign from the Senate and return to New Hampshire.
前几年,她还劝她的丈夫辞去国会参议员和众议员职务,回到新罕布什尔州。
After my return to New York, I received a small brown envelope with Tyra's name in the return address.
我回到纽约后,收到一封棕黄色的信封,上面写着回复提拉的地址。
She has no plans to return to New York.
目前,她并不打算回到纽约。
Listing 3. Update new row pointer and return test data.
列表3.更新新的行指针,并返回测试数据。
This is done by entering just enough data to overwrite the arguments with dummy data and a new return pointer to a different function; the new function is now executed. 10
这是通过输入足够的数据来用伪数据覆盖参数,及输入到不同函数的新返回指针来实现的,现在就执行新的函数了。
The API methods I'll show you for doing date calculations all return a new instance of the corresponding Joda class, leaving the original instance unchanged.
我将向您展示的用于处理日期计算的API方法全部返回一个对应joda类的新实例,同时保持原始实例不变。
We also changed the interface for the ShippingTask component to return this new business object.
我们还更改了ShippingTask组件的接口,以便返回这个新业务对象。
It will then return a new UserList element with the same children, plus an additional child that follows the existing children.
继而返回一个具有相同子节点的新userlist元素,另外在现有子节点之后又增加了一个子节点。
Because Clojure trees are immutable data structures, any manipulation requires that we return a new, modified tree.
由于clojure树是不可变的数据结构,因此任何操作都需要返回一个经过修改的新树。
If this condition is true (meaning I want this item in my list), I return a new list constructed by taking the current head and a filtered remainder of the list.
如果该条件为true(即我希望该项存在于列表中),则将返回一个新列表,该列表由当前的头部项和列表中过滤后剩下的项组成。
Operators don't mutate the original source, but instead return a new sequence which will return the appropriate data
运算符不会改变原本的数据,而是返回一个新的序列,这个序列会返回相应的数据;
Jessica has recently moved from New York to berlin-i wonder whether she will return to New York after five years, as I did.
Jessica是最近才从纽约回到柏林——我想她会不会像我一样五年后又回到纽约呢?
When you return to the New Books wizard, double-check the Settings based on Figure 11, then click ok.
当返回到NewBooks向导时,依据图11仔细核对设置,然后单击ok。
When you return to the New Books wizard, click ok.
当返回到NewBooks向导时,单击ok。
Taylor, who famously swam with sharks off Hawaii last year, tells Smith she plans to return to her new Hawaiian adopted home next week with Winters.
泰勒去年在夏威夷与鲨鱼同游引起过一时轰动,她告诉史密斯下周她打算同温特斯一起回到夏威夷的新居。
Taylor, who famously swam with sharks off Hawaii last year, tells Smith she plans to return to her new Hawaiian adopted home next week with Winters.
泰勒去年在夏威夷与鲨鱼同游引起过一时轰动,她告诉史密斯下周她打算同温特斯一起回到夏威夷的新居。
应用推荐