diff --git a/README.md b/README.md index 7612a8b..4ca535f 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,8 @@ _KALANG: Korean Programming Language_. - < 0.03 MB. -- Tested with >250 cases -- Written in JavaScript, natively runs on web browsers. +- Tested with >250 cases. +- JavaScript-implemented, which runs natively on web browsers. - Minimal syntax with Korean keywords. Try _KALANG_ at [Playground][playground]. @@ -81,7 +81,7 @@ Defining and calling function: ``` which yields `52`. -Closure: +Closure and currying: ``` 더하기 = 함수(숫자1) { 결과 함수(숫자2) { @@ -92,8 +92,10 @@ Closure: 하나더하기 = 더하기(1) 하나더하기(42) + +더하기(1)(42) ``` -which yields `43`. +which yields `43` twice. diff --git a/docs/README.ko.md b/docs/README.ko.md index 76a83d8..a3d486f 100644 --- a/docs/README.ko.md +++ b/docs/README.ko.md @@ -83,7 +83,7 @@ kal.execute("쓰기('사과')", stdout => stdouts.push(stdout)); // stdout === [ ``` 결과는 `52`입니다. -클로저: +클로저 및 커링: ``` 더하기 = 함수(숫자1) { 결과 함수(숫자2) { @@ -94,8 +94,10 @@ kal.execute("쓰기('사과')", stdout => stdouts.push(stdout)); // stdout === [ 하나더하기 = 더하기(1) 하나더하기(42) + +더하기(1)(42) ``` -결과는 `42`입니다. +결과는 둘 다 `42`입니다.