function problem1(a, b, c) {
arguments[0] = 100;
return [a, b, c];
}
problem1(1, 2, 3) // ๋ฐํ๊ฐ์ ๋ง์ถ์ด ๋ณด์ธ์!์ ๋ต: [100, 2, 3]
function problem1(a, b, c) {
arguments[0] = 100;
return [a, b, c];
}
problem1(1, 2, 3) // ๋ฐํ๊ฐ์ ๋ง์ถ์ด ๋ณด์ธ์!์ ๋ต: [100, 2, 3]
๊ฐ๋ฒผ์ด Observable ๊ณผ Iterable์ ๊ตฌํํ ์ ์๊ฒ ํ๋ ์๋ฐ์คํฌ๋ฆฝํธ์ ์ฝ๋ฐฑ์ ์ํ ํ์ค
๊ธฐ๋ณธ์ ์ธ callbag ํฉํ ๋ฆฌ์ ์คํผ๋ ์ดํฐ๋ค์ ์ ๊ณตํ๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ๋๋ค.
callbag-basics ์ callbag ์ด๋ผ๋ ๋ช ์ธ๋ฅผ ๋ฐ๋ฅด๋ ํจ์๋ค์ ๊ตฌํํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์์.
Callbag ์ ๋ง์ด์ฃ ..:
numPrefix ::= 0x | 0b | 0o | nothing
floatNumber ::= numbers . numbers
fullNumber ::= numPrefix numbers | floatNumber
char ::= utf 8 char
chars ::= char chars | nothing
fullString ::= " chars "
alphabet ::= A-z
alphabets ::= alphabet alphabets | nothing
number ::= 0-9
numbers ::= number numbers | nothing
specialChar ::= _ | ?
specialChars ::= specialChar specialChars | nothing
identifierHead ::= specialChar | alphabet
identifierBody ::= alphabets | numbers | specialChars
identifierBodys ::= identifierBody identifierBodys | nothing
| package main | |
| import "fmt" | |
| type any interface {} | |
| type Stack []any | |
| func (stack *Stack) Push(elements ...any) Stack { | |
| for _, element:= range elements { |
EBNF of identifier
EBNF of literal
์ฐ์๋ 2๊ฐ ์ด์์ space๋ ํ๊ฐ์ space๋ก ์นํ๋ฉ๋๋ค.
๋ชจ๋ ์ค์ trim ๋ฉ๋๋ค.(์ค์ ์ฒซ ๋ฒ์งธ ๋ฌธ์๊ฐ space๊ฐ ์๋๊ณ , ๊ฐ์ฅ ๋ง์ง๋ง ๋ฌธ์๊ฐ space๊ฐ ์๋ ๋ ๊น์ง ๋ชจ๋ space๋ฅผ ์ ๊ฑฐํจ์ ์๋ฏธ.)
space ::= 'utf8 space character'
spaces ::= space spaces
expressions ::= expression spaces expressions
expression ::= container | literal | nothing