mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 07:33:57 +00:00
Merge branch 'master' into update-to-latest-solidity
This commit is contained in:
commit
23c11c9a73
@ -75,8 +75,8 @@ List.head [] -- Nothing
|
||||
|
||||
-- K získání hodnot z dvojice použijte funkce first a second.
|
||||
-- (Toto je pouze zkratka. Brzy si ukážeme, jak na to "správně".)
|
||||
fst ("elm", 42) -- "elm"
|
||||
snd ("elm", 42) -- 42
|
||||
Tuple.first ("elm", 42) -- "elm"
|
||||
Tuple.second ("elm", 42) -- 42
|
||||
|
||||
-- Prázná n-tice, neboli "unit", se občas používá jako zástupný symbol.
|
||||
-- Je to jediná hodnota svého typu, který se také nazývá "Unit".
|
||||
|
@ -72,8 +72,8 @@ List.head [] -- Nothing
|
||||
|
||||
-- Access the elements of a pair with the first and second functions.
|
||||
-- (This is a shortcut; we'll come to the "real way" in a bit.)
|
||||
fst ("elm", 42) -- "elm"
|
||||
snd ("elm", 42) -- 42
|
||||
Tuple.first ("elm", 42) -- "elm"
|
||||
Tuple.second ("elm", 42) -- 42
|
||||
|
||||
-- The empty tuple, or "unit", is sometimes used as a placeholder.
|
||||
-- It is the only value of its type, also called "Unit".
|
||||
|
@ -255,7 +255,7 @@ There exists two main types of links: visible URL \\
|
||||
% You can not add extra-spaces or special symbols into shadowing text since it
|
||||
% will cause mistakes during the compilation
|
||||
|
||||
This package also produces list of tumbnails in the output pdf document and
|
||||
This package also produces list of thumbnails in the output pdf document and
|
||||
active links in the table of contents.
|
||||
|
||||
\section{End}
|
||||
|
@ -1366,7 +1366,7 @@ sub add($a, $b) { $a + $b }
|
||||
say [[&add]] 1, 2, 3; #=> 6
|
||||
|
||||
## * Zip meta-operator
|
||||
## This one is an infix meta-operator than also can be used as a "normal"
|
||||
## This one is an infix meta-operator that also can be used as a "normal"
|
||||
## operator. It takes an optional binary function (by default, it just creates
|
||||
## a pair), and will pop one value off of each array and call its binary
|
||||
## function on these until it runs out of elements. It returns an array with
|
||||
@ -1659,7 +1659,7 @@ sub MAIN($name) { say "Hello, $name !" }
|
||||
## Usage:
|
||||
## t.pl <name>
|
||||
|
||||
## And since it's a regular Perl 6 sub, you can haz multi-dispatch:
|
||||
## And since it's a regular Perl 6 sub, you can have multi-dispatch:
|
||||
## (using a "Bool" for the named argument so that we can do `--replace`
|
||||
## instead of `--replace=1`)
|
||||
subset File of Str where *.IO.d; # convert to IO object to check the file exists
|
||||
|
@ -76,8 +76,8 @@ List.head [] -- Nothing
|
||||
|
||||
-- Acesse os elementos de um par com as funções first e second.
|
||||
-- (Este é um atalho; nós iremos para o "caminho real" em breve.)
|
||||
fst ("elm", 42) -- "elm"
|
||||
snd ("elm", 42) -- 42
|
||||
Tuple.first ("elm", 42) -- "elm"
|
||||
Tuple.second ("elm", 42) -- 42
|
||||
|
||||
-- Uma tupla vazia ou "unidade" às vezes é utilizada como um placeholder.
|
||||
-- É o único valor de seu tipo, também chamado de "Unit".
|
||||
|
@ -106,6 +106,9 @@ False or True #=> True
|
||||
# И строки тоже могут складываться! Хотя лучше не злоупотребляйте этим.
|
||||
"Привет " + "мир!" #=> "Привет мир!"
|
||||
|
||||
# Строки можно умножать.
|
||||
"aa" * 4 #=> "aaaaaaaa"
|
||||
|
||||
# Со строкой можно работать, как со списком символов
|
||||
"Это строка"[0] #=> 'Э'
|
||||
|
||||
|
@ -830,6 +830,7 @@ someContractAddress.callcode('function_name');
|
||||
- [Solidity Docs](https://solidity.readthedocs.org/en/latest/)
|
||||
- [Smart Contract Best Practices](https://github.com/ConsenSys/smart-contract-best-practices)
|
||||
- [Solidity Style Guide](https://ethereum.github.io/solidity//docs/style-guide/): Ethereum's style guide is heavily derived from Python's [pep8](https://www.python.org/dev/peps/pep-0008/) style guide.
|
||||
- [EthFiddle - The JsFiddle for Solidity](https://ethfiddle.com/)
|
||||
- [Browser-based Solidity Editor](https://remix.ethereum.org/)
|
||||
- [Gitter Solidity Chat room](https://gitter.im/ethereum/solidity)
|
||||
- [Modular design strategies for Ethereum Contracts](https://docs.erisindustries.com/tutorials/solidity/)
|
||||
|
@ -12,12 +12,9 @@ translators:
|
||||
lang: zh-cn
|
||||
---
|
||||
|
||||
Javascript于1995年由网景公司的Brendan Eich发明。
|
||||
最初发明的目的是作为一个简单的网站脚本语言,来作为
|
||||
复杂网站应用java的补充。但由于它与网页结合度很高并且由浏览器内置支持,
|
||||
所以javascript变得比java在前端更为流行了。
|
||||
Javascript 于 1995 年由网景公司的 Brendan Eich 发明。最初它作为一种简单的,用于开发网站的脚本语言而被发明出来,是用于开发复杂网站的 Java 的补充。但由于它与网页结合度很高并且在浏览器中得到内置的支持,所以在网页前端领域 Javascript 变得比 Java 更流行了。
|
||||
|
||||
不过 JavaScript 可不仅仅只用于浏览器: Node.js,一个基于Google Chrome V8引擎的独立运行时环境,也越来越流行。
|
||||
不过,Javascript 不仅用于网页浏览器,一个名为 Node.js 的项目提供了面向 Google Chrome V8 引擎的独立运行时环境,它正在变得越来越流行。
|
||||
|
||||
很欢迎来自您的反馈,您可以通过下列方式联系到我:
|
||||
[@adambrenecki](https://twitter.com/adambrenecki), 或者
|
||||
|
Loading…
Reference in New Issue
Block a user