{"id":248,"date":"2020-03-17T11:22:00","date_gmt":"2020-03-17T02:22:00","guid":{"rendered":"http:\/\/batmask.dothome.co.kr\/?p=248"},"modified":"2025-09-11T18:40:07","modified_gmt":"2025-09-11T09:40:07","slug":"kotlin-vs-python-lambda-function","status":"publish","type":"post","link":"http:\/\/batmask.net\/index.php\/2020\/03\/17\/248\/","title":{"rendered":"Kotlin vs Python : Lambda function"},"content":{"rendered":"\n<p>\ub098\ucc98\ub7fc \uc61b\ub0a0 \uac1c\ubc1c\uc790\ub294 \ubcc4 \uad00\uc2ec \uc5c6\ub358 \uc774\ub984\uc911\uc5d0 \ud558\ub098\uac00 \ub78c\ub2e4 \ud568\uc218\uc600\ub2e4. Lisp\uac19\uc740 \uace0\uc624\uc624\uc624\uae09 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d\uc5d0\uc11c\ub098 \uc4f4\ub2e4\uace0 \uc8fc\uc6cc\ub4e3\uace0 \uc788\uc5c8\ub294\ub370, \uc624\ub7ab\ub9cc\uc5d0 \ucf54\ub529\ud558\ub2e4\ubcf4\ub2c8 \ud544\uc218 \uc544\uc774\ud15c\uc774 \ub418\uc5b4 \uc788\ub124. \uc544\uc8fc \uc0c8\ub85c\uc6b4 \uac1c\ub150\uc740 \uc544\ub2c8\uace0 \uc2e4\uc6a9\uc801\uc73c\ub85c \uac04\ud3b8\ud558\uac8c \uc4f8 \uc218 \uc788\ub294 anonymous function \uc815\ub3c4\ub85c \uc54c\uba74 \ub420\uac70 \uac19\ub2e4.  Java\uc5d0\uc11c \ub108\uc800\ubd84\ud558\uac8c \uc0ac\uc6a9\ud588\ub358 anonymous function\uc758 \uc790\ub9ac\uc5d0 lambda function\uc744 \ub123\uc73c\uba74 \ub9e4\uc6b0 \uac04\uacb0\ud574\uc9c4\ub2e4.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">python<\/h4>\n\n\n\n<p>lambda arguments : expression<\/p>\n\n\n\n<p>\uc704\uc640 \uac19\uc774 \uc815\uc758\ub41c\ub2e4. &#8216;lambda&#8217;\ub77c\uace0 \uba85\uc2dc\ud574\uc8fc\uba74 \ub05d\uc778\uc815\ub3c4.  python\uc758 \uacbd\uc6b0 lambda expression\uc774 \ud55c\uc904\ub85c \ud45c\ud604\ub418\ubbc0\ub85c expression \uac12\uc774 \ub9ac\ud134\uac12\uc774\ub77c\uace0 \uc0dd\uac01\ud558\uba74 \ub41c\ub2e4.<\/p>\n\n\n\n<p>argument\ub294 \uc5ec\ub7ec\uac1c\uac00 \uc62c \uc218\ub3c4 \uc788\ub2e4. \uac04\ub2e8\ud55c \uc608\ub4e4\uc744 \ubcf4\uc790.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-Roboto-Mono.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-Roboto-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#22272e\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#adbac7;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>x = lambda a: a ** 2     # argument\uc758 \uc81c\uacf1\uc744 \ub9ac\ud134\nprint(x(5))<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">x <\/span><span style=\"color: #F47067\">=<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #F47067\">lambda<\/span><span style=\"color: #ADBAC7\"> a: a <\/span><span style=\"color: #F47067\">**<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #6CB6FF\">2<\/span><span style=\"color: #ADBAC7\">     <\/span><span style=\"color: #768390\"># argument\uc758 \uc81c\uacf1\uc744 \ub9ac\ud134<\/span><\/span>\n<span class=\"line\"><span style=\"color: #6CB6FF\">print<\/span><span style=\"color: #ADBAC7\">(x(<\/span><span style=\"color: #6CB6FF\">5<\/span><span style=\"color: #ADBAC7\">))<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-Roboto-Mono.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-Roboto-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#22272e\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#adbac7;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>x = lambda a, b: a + b     # \ub450\uac1c\uc758 arguments\uc758 \ud569\uc744 \ub9ac\ud134\nprint(x(3, 4))<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">x <\/span><span style=\"color: #F47067\">=<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #F47067\">lambda<\/span><span style=\"color: #ADBAC7\"> a, b: a <\/span><span style=\"color: #F47067\">+<\/span><span style=\"color: #ADBAC7\"> b     <\/span><span style=\"color: #768390\"># \ub450\uac1c\uc758 arguments\uc758 \ud569\uc744 \ub9ac\ud134<\/span><\/span>\n<span class=\"line\"><span style=\"color: #6CB6FF\">print<\/span><span style=\"color: #ADBAC7\">(x(<\/span><span style=\"color: #6CB6FF\">3<\/span><span style=\"color: #ADBAC7\">, <\/span><span style=\"color: #6CB6FF\">4<\/span><span style=\"color: #ADBAC7\">))<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>list.sort(), filter(), map(), reduce() \ub4f1\uc5d0 \uc0ac\uc6a9\ud558\uba74 \ud3b8\ub9ac\ud558\ub2e4. <\/p>\n\n\n\n<p>sort()\uc758 \uacbd\uc6b0 argument\ub85c &#8216;key&#8217;\uac12\uc5d0 \ube44\uad50\ub97c \uc704\ud55c \ud568\uc218\ub97c \ub118\uae30\uac8c \ub41c\ub2e4. \uc774 \ud568\uc218 \uc790\ub9ac\uc5d0 lambda\ub97c \uc4f8 \uc218 \uc788\ub2e4.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-Roboto-Mono.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-Roboto-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#22272e\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#adbac7;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>a = &#91;(1, 2), (2, 5), (3, 1), (4, 15)&#93;\na.sort(key=lambda x: x&#91;1&#93;)   # tuple\uc758 \uccab\ubc88\uc9f8 \uc544\uc774\ud15c\uc744 sort \ube44\uad50\uac12\uc73c\ub85c \uc900\ub2e4.<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">a <\/span><span style=\"color: #F47067\">=<\/span><span style=\"color: #ADBAC7\"> &#91;(<\/span><span style=\"color: #6CB6FF\">1<\/span><span style=\"color: #ADBAC7\">, <\/span><span style=\"color: #6CB6FF\">2<\/span><span style=\"color: #ADBAC7\">), (<\/span><span style=\"color: #6CB6FF\">2<\/span><span style=\"color: #ADBAC7\">, <\/span><span style=\"color: #6CB6FF\">5<\/span><span style=\"color: #ADBAC7\">), (<\/span><span style=\"color: #6CB6FF\">3<\/span><span style=\"color: #ADBAC7\">, <\/span><span style=\"color: #6CB6FF\">1<\/span><span style=\"color: #ADBAC7\">), (<\/span><span style=\"color: #6CB6FF\">4<\/span><span style=\"color: #ADBAC7\">, <\/span><span style=\"color: #6CB6FF\">15<\/span><span style=\"color: #ADBAC7\">)&#93;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ADBAC7\">a.sort(<\/span><span style=\"color: #F69D50\">key<\/span><span style=\"color: #F47067\">=lambda<\/span><span style=\"color: #ADBAC7\"> x: x&#91;<\/span><span style=\"color: #6CB6FF\">1<\/span><span style=\"color: #ADBAC7\">&#93;)   <\/span><span style=\"color: #768390\"># tuple\uc758 \uccab\ubc88\uc9f8 \uc544\uc774\ud15c\uc744 sort \ube44\uad50\uac12\uc73c\ub85c \uc900\ub2e4.<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>lambda\ub97c \ub354 \ubcf5\uc7a1\ud558\uac8c \ub2e4\ub8e8\ub294 \uc790\ub8cc\ub294 \uc798 \uc5c6\ub294\ub370, \ub300\ucda9 \ub458\ub7ec\ubd24\uc744 \ub54c \uac00\uc7a5 \uc798 \uc815\ub9ac\ub41c \uc0ac\uc774\ud2b8\ub294 \ucf54\ub529\ub3c4\uc7a5\uc774\uc5c8\ub2e4. <a href=\"https:\/\/dojang.io\/mod\/page\/view.php?id=2360\">\ucf54\ub529\ub3c4\uc7a5 \uc0ac\uc774\ud2b8 \ucc38\uc870<\/a>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Kotlin<\/h4>\n\n\n\n<p>\uac00\uc7a5 \uc798 \uc124\uba85\ud558\uace0 \uc788\ub294 \uacf3\uc740 <a href=\"https:\/\/kotlinlang.org\/docs\/reference\/lambdas.html#lambda-expression-syntax\">\uacf5\uc2dd\ubb38\uc11c<\/a>\uc774\ub2c8 \ub2f9\uc5f0\ud788 \ucc38\uc870.<\/p>\n\n\n\n<p>Python\uc774 \uadf8\ub807\ub4ef, Kotlin\ub3c4 \ud568\uc218\uac00 first class \uac12\uc774\ub2e4. \ubb34\uc2a8 \ub73b\uc774\ub0d0\uba74, \ubcc0\uc218\ub098 \uc790\ub8cc\uad6c\uc870\uc5d0 \ud560\ub2f9\ud558\uc5ec \uc800\uc7a5\ud560 \uc218\ub3c4 \uc788\uace0, \uc778\uc790\ub85c \uc804\ub2ec\ud558\uac70\ub098 \ub9ac\ud134\uac12\uc73c\ub85c \ub3cc\ub824\uc8fc\ub294\uac8c \uac00\ub2a5\ud558\ub2e4. \uc624\ub798\uc804 C++\uc744 \ub5a0\uc62c\ub9ac\uba74 \ud568\uc218\ud3ec\uc778\ud130\ub098 \ud568\uc218\ucc38\uc870\ub97c \uc0dd\uac01\ud558\uba74 \ub418\uaca0\ub2e4.<\/p>\n\n\n\n<p>\ud568\uc218\ub97c \uc778\uc790\ub85c \uc804\ub2ec\ud558\uac70\ub098, \ub9ac\ud134\ud558\ub294 \uacbd\uc6b0 \uadf8 \ud0c0\uc785\uc744 \uc368\uc57c\ud558\ub294\ub370 function type\uc774 \uc874\uc7ac\ud558\uba70 \ub2e4\uc74c\uacfc \uac19\uc740 \ud3ec\ub9f7\uc744 \uc774\uc6a9\ud55c\ub2e4.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-Roboto-Mono.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-Roboto-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#22272e\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#adbac7;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>(A, B) -> C <\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">(A, B) <\/span><span style=\"color: #F47067\">-&gt;<\/span><span style=\"color: #ADBAC7\"> C <\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>A, B\ub294 \uc778\uc790(argument)\ud0c0\uc785\uc774\uace0 C \ub294 \ub9ac\ud134\uac12\uc774\ub2e4. \uc2e4\uc81c \ud0c0\uc785\uc744 \uc0ac\uc6a9\ud558\uba74 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-Roboto-Mono.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-Roboto-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#22272e\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#adbac7;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>(Int, Double) -> Int<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">(Int, Double) <\/span><span style=\"color: #F47067\">-&gt;<\/span><span style=\"color: #ADBAC7\"> Int<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\uc778\uc790\uac00 \uc5c6\ub294\uacbd\uc6b0, \ube48\uad04\ud638\ub97c \uc368\uc11c &#8216;() -&gt; C&#8217; \uc640\uac19\uc774 \uc4f0\uace0, \ub9ac\ud134\uac12\uc774 \uc5c6\ub294\uacbd\uc6b0\ub294 Unit\uc744 \ub9ac\ud134\ud574\uc918\uc11c &#8216;(A, B) -&gt; Unit&#8217;\uc774 \ub41c\ub2e4.<\/p>\n\n\n\n<p>\uc774 \ud568\uc218\ud0c0\uc785\uc758 \uc790\ub9ac\uc5d0 lambda function\uc774 \ub4e4\uc5b4\uac08 \uc218 \uc788\ub2e4. lambda function\uc744 \ub9cc\ub4e4\ub824\uba74, Python\uc5d0\uc11c\ub294 &#8216;lambda&#8217;\ud0a4\uc6cc\ub4dc\ub97c \uc0ac\uc6a9\ud588\ub294\ub370, Kotlin\uc5d0\uc11c lambda\ub294 \uc911\uad04\ud638 &#8216;{}&#8217; \ub85c \ubb36\uc5b4\uc900\ub2e4. \uadf8 \ud615\ud0dc\ub294 \ud568\uc218\ud0c0\uc785\uacfc \uc720\uc0ac\ud558\ub2e4. \uc608\ub97c\ub4e4\uba74,<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-Roboto-Mono.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-Roboto-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#22272e\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#adbac7;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>{a: Int, b: Int -> a + b }<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">{a: <\/span><span style=\"color: #F69D50\">Int<\/span><span style=\"color: #ADBAC7\">, b: <\/span><span style=\"color: #F69D50\">Int<\/span><span style=\"color: #ADBAC7\"> -&gt; <\/span><span style=\"color: #F69D50\">a<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #F47067\">+<\/span><span style=\"color: #ADBAC7\"> b }<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>a, b\ub294 \uc778\uc790\uc774\uace0 &#8216;-&gt;&#8217; \ub4a4\uc5d0 \ud45c\ud604\uc2dd\uc774 \ub098\uc628\ub2e4. python\uc5d0\uc11c\uc640 \ub9c8\ucc2c\uac00\uc9c0\ub85c \ub9ac\ud134\uac12\uc740 \uba85\uc2dc\uc801\uc73c\ub85c \ud45c\uc2dc\ud560 \ud544\uc694\uac00 \uc5c6\ub2e4. Kotlin\uc774 \uc815\uc801 \ud0c0\uc785\uc5b8\uc5b4\uc774\ubbc0\ub85c, \ud0c0\uc785\uc744 \uc790\ub3d9\uc73c\ub85c \uac10\uc9c0\ud558\uc9c0 \ubabb\ud558\ub294 \uacbd\uc6b0 \ud0c0\uc785\ub3c4 \uba85\uc2dc\ud55c\ub2e4.<\/p>\n\n\n\n<p>Kotlin lambda\uc5d0\ub294 \ud3b8\ub9ac\ud55c \ud45c\ud604 \uba87\uac00\uc9c0\uac00 \ucd94\uac00\ub41c\ub2e4. \uba3c\uc800, \uc778\uc790\uac00 \ud558\ub098\uc778 \uacbd\uc6b0 \uc778\uc790\ud45c\uc2dc \uc5c6\uc774 &#8216;it&#8217;\ud0a4\uc6cc\ub4dc\ub97c \uc0ac\uc6a9\ud574 \ud45c\ud604\uc2dd\ub9cc \uc4f0\uba74\ub41c\ub2e4. \ub610\ud55c, lambda\uac00 \ud568\uc218\uc758 \ub9c8\uc9c0\ub9c9 \uc778\uc790\uc778 \uacbd\uc6b0, \uad04\ud638 \ubc16\uc73c\ub85c \ube7c\uc11c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub2e4. \uacb0\uacfc\uc801\uc73c\ub85c \uc544\ub798 \uc608\uc758 3\uac1c\uac00 \ub3d9\uc77c\ud558\ub2e4.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-Roboto-Mono.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-Roboto-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#22272e\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#adbac7;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>var ints = listOf(-3, -2, -1, 0, 1, 2, 3, 4, 5)\n\nprintln(ints.filter({it: Int -> it > 0}))\nprintln(ints.filter({it > 0}))\nprintln(ints.filter{it > 0})<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #F47067\">var<\/span><span style=\"color: #ADBAC7\"> ints <\/span><span style=\"color: #F47067\">=<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #DCBDFB\">listOf<\/span><span style=\"color: #ADBAC7\">(<\/span><span style=\"color: #F47067\">-<\/span><span style=\"color: #6CB6FF\">3<\/span><span style=\"color: #ADBAC7\">, <\/span><span style=\"color: #F47067\">-<\/span><span style=\"color: #6CB6FF\">2<\/span><span style=\"color: #ADBAC7\">, <\/span><span style=\"color: #F47067\">-<\/span><span style=\"color: #6CB6FF\">1<\/span><span style=\"color: #ADBAC7\">, <\/span><span style=\"color: #6CB6FF\">0<\/span><span style=\"color: #ADBAC7\">, <\/span><span style=\"color: #6CB6FF\">1<\/span><span style=\"color: #ADBAC7\">, <\/span><span style=\"color: #6CB6FF\">2<\/span><span style=\"color: #ADBAC7\">, <\/span><span style=\"color: #6CB6FF\">3<\/span><span style=\"color: #ADBAC7\">, <\/span><span style=\"color: #6CB6FF\">4<\/span><span style=\"color: #ADBAC7\">, <\/span><span style=\"color: #6CB6FF\">5<\/span><span style=\"color: #ADBAC7\">)<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #DCBDFB\">println<\/span><span style=\"color: #ADBAC7\">(ints.<\/span><span style=\"color: #DCBDFB\">filter<\/span><span style=\"color: #ADBAC7\">({it: <\/span><span style=\"color: #F69D50\">Int<\/span><span style=\"color: #ADBAC7\"> -&gt; <\/span><span style=\"color: #F69D50\">it<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #F47067\">&gt;<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #6CB6FF\">0<\/span><span style=\"color: #ADBAC7\">}))<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCBDFB\">println<\/span><span style=\"color: #ADBAC7\">(ints.<\/span><span style=\"color: #DCBDFB\">filter<\/span><span style=\"color: #ADBAC7\">({it <\/span><span style=\"color: #F47067\">&gt;<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #6CB6FF\">0<\/span><span style=\"color: #ADBAC7\">}))<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCBDFB\">println<\/span><span style=\"color: #ADBAC7\">(ints.<\/span><span style=\"color: #DCBDFB\">filter<\/span><span style=\"color: #ADBAC7\">{it <\/span><span style=\"color: #F47067\">&gt;<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #6CB6FF\">0<\/span><span style=\"color: #ADBAC7\">})<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\uc9e7\uc544\uc9c4 \ud45c\ud604\uc5d0 \ubd88\ud544\uc694\ud558\uac8c \uae38\uc5b4\uc9c0\ub294 \uad04\ud638\ud45c\ud604\uc744 \uc81c\uac70\ud568\uc73c\ub85c\uc11c \uac04\ub2e8\ud574\uc9c0\uace0 \uac00\ub3c5\uc131\ub3c4 \uc62c\ub9b4 \uc218 \uc788\ub294\uac78 \uc54c \uc218 \uc788\ub2e4.<\/p>\n\n\n\n<p>\uc778\uc790\ub85c \ub118\uc5b4\uc624\uc9c0\ub9cc \uc4f0\uc9c0 \uc54a\ub294 \uac83\ub4e4\uc5d0 \ub300\ud55c \ud45c\ud604\ubc29\uc2dd\ub3c4 \uc788\ub2e4. \uc778\uc790 \uc774\ub984\ub300\uc2e0 &#8216;-&#8216;(under score)\ub97c \uc4f0\ub294 \uac83.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-Roboto-Mono.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-Roboto-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#adbac7;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#22272e\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#adbac7;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>map.forEach { _, value -> println(\"$value!\") }<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki github-dark-dimmed\" style=\"background-color: #22272e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ADBAC7\">map.<\/span><span style=\"color: #DCBDFB\">forEach<\/span><span style=\"color: #ADBAC7\"> { _, <\/span><span style=\"color: #F47067\">value<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #F47067\">-&gt;<\/span><span style=\"color: #ADBAC7\"> <\/span><span style=\"color: #DCBDFB\">println<\/span><span style=\"color: #ADBAC7\">(<\/span><span style=\"color: #96D0FF\">&quot;<\/span><span style=\"color: #6CB6FF\">$value<\/span><span style=\"color: #96D0FF\">!&quot;<\/span><span style=\"color: #ADBAC7\">) }<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\uc0ac\uc6a9\ub418\uc9c0 \uc54a\ub294 \uc778\uc790\ub97c \ud55c\ub208\uc5d0 \uc2dd\ubcc4 \uac00\ub2a5\ud558\ub2e4.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ub098\ucc98\ub7fc \uc61b\ub0a0 \uac1c\ubc1c\uc790\ub294 \ubcc4 \uad00\uc2ec \uc5c6\ub358 \uc774\ub984\uc911\uc5d0 \ud558\ub098\uac00 \ub78c\ub2e4 \ud568\uc218\uc600\ub2e4. Lisp\uac19\uc740 \uace0\uc624\uc624\uc624\uae09 \ud568\uc218\ud615 \ud504\ub85c\uadf8\ub798\ubc0d\uc5d0\uc11c\ub098 \uc4f4\ub2e4\uace0 \uc8fc\uc6cc\ub4e3\uace0 \uc788\uc5c8\ub294\ub370, \uc624\ub7ab\ub9cc\uc5d0 \ucf54\ub529\ud558\ub2e4\ubcf4\ub2c8 \ud544\uc218 \uc544\uc774\ud15c\uc774 \ub418\uc5b4 \uc788\ub124. \uc544\uc8fc \uc0c8\ub85c\uc6b4 \uac1c\ub150\uc740 \uc544\ub2c8\uace0 \uc2e4\uc6a9\uc801\uc73c\ub85c \uac04\ud3b8\ud558\uac8c \uc4f8 \uc218 \uc788\ub294 anonymous function \uc815\ub3c4\ub85c \uc54c\uba74 \ub420\uac70 \uac19\ub2e4. Java\uc5d0\uc11c \ub108\uc800\ubd84\ud558\uac8c \uc0ac\uc6a9\ud588\ub358 anonymous function\uc758 \uc790\ub9ac\uc5d0 lambda function\uc744 \ub123\uc73c\uba74 \ub9e4\uc6b0 \uac04\uacb0\ud574\uc9c4\ub2e4. python lambda arguments : expression \uc704\uc640 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,33],"tags":[91,92,38,90,35,140,41,55],"class_list":["post-248","post","type-post","status-publish","format-standard","hentry","category-kotlin","category-python","tag-function","tag-function-type","tag-kotlin","tag-lambda","tag-python","tag-lambda-kr","tag-kotlin-kr","tag-python-kr"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/posts\/248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/comments?post=248"}],"version-history":[{"count":6,"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/posts\/248\/revisions"}],"predecessor-version":[{"id":3450,"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/posts\/248\/revisions\/3450"}],"wp:attachment":[{"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/media?parent=248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/categories?post=248"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/tags?post=248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}