{"id":209,"date":"2010-03-07T08:53:07","date_gmt":"2010-03-06T23:53:07","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2010\/03\/07\/_1\/"},"modified":"2010-03-07T08:53:07","modified_gmt":"2010-03-06T23:53:07","slug":"_1","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2010\/03\/07\/_1\/","title":{"rendered":"\u4e00\u4eba\u8aad\u66f8\u4f1a \u300c\u8a08\u7b97\u6a5f\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u69cb\u9020\u3068\u89e3\u91c8\u300d (1)"},"content":{"rendered":"<p><a href=\"http:\/\/www.amazon.co.jp\/dp\/489471163X?tag=typea09-22&amp;link_code=as3&amp;creativeASIN=489471163X&amp;creative=3999&amp;camp=767\"><img decoding=\"async\" src=\"http:\/\/images-jp.amazon.com\/images\/P\/489471163X.09.MZZZZZZZ.jpg\"><\/a>  <\/p>\n<p>\u300c\u8a08\u7b97\u6a5f\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u69cb\u9020\u3068\u89e3\u91c8\u300d \u3092\u8cfc\u5165\u3002\u3057\u3063\u304b\u308a\u3068\u8aad\u307f\u8fbc\u307f\u305f\u3044\u306e\u3067\u30011\u5e74\u304f\u3089\u3044\u304b\u3051\u3066\u4e00\u4eba\u8aad\u66f8\u4f1a\u3068\u3057\u3083\u308c\u8fbc\u3082\u3046\u3068\u601d\u3046\u3002<\/p>\n<p>\u30fb\u30fb\u30fb\u96fb\u8eca\u3067\u8aad\u3080\u3060\u3051\u3067\u306f\u3082\u3063\u305f\u3044\u306a\u3044\u3002<\/p>\n<h2>1.\u624b\u7d9a\u304d\u306b\u3088\u308b\u62bd\u8c61\u306e\u69cb\u7bc9<\/h2>\n<p>\u307e\u305a\u3001\u5168\u7de8\u3092\u901a\u3057\u3066\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u8aac\u660e\u306b\u306f\u3001C \u3084 Java \u3084 Python \u3067\u306f\u306a\u304f\u3001Lisp \u306e\u65b9\u8a00\u3067\u3042\u308b\u3001<a href=\"http:\/\/ja.wikipedia.org\/wiki\/Scheme\" target=\"_blank\">Scheme (\u30b9\u30ad\u30fc\u30e0)<\/a> \u3092\u4f7f\u7528\u3059\u308b\u3002<\/p>\n<p>\u305d\u3082\u305d\u3082\u3001Scheme \u306e\u8a2d\u8a08\u8005\u3067\u3042\u308b\u3001\u30b8\u30a7\u30e9\u30eb\u30c9\u30fb\u30b8\u30a7\u30a4\u30fb\u30b5\u30b9\u30de\u30f3 \u304c\u3001\u672c\u66f8\u306e\u8457\u8005\u3002<\/p>\n<p>amazon \u306e\u30ec\u30d3\u30e5\u30fc\u3092\u307f\u308b\u3068\u3001\u8a33\u306b\u5bfe\u3059\u308b\u82e6\u60c5\u304c\u591a\u3044\u3088\u3046\u3060\u304c\u3001\u81ea\u5206\u3082\u6700\u521d\u306e\u30da\u30fc\u30b8\u3067\u9055\u548c\u611f\u3092\u611f\u3058\u305f\u3002\u30c7\u30d0\u30c3\u30b0\u306e\u3053\u3068\u3092\u300c\u866b\u3068\u308a\u300d\u3068\u304b\u3002<\/p>\n<p>\u305f\u3060\u3001\u8a33\u8005\u304c\u30011931\u5e74\u751f\u307e\u308c\u306e\u5148\u751f\u3068\u3044\u3046\u3053\u3068\u3092\u77e5\u308b\u3068\u3001\u8a33\u306e\u96f0\u56f2\u6c17\u306e\u9055\u548c\u611f\u3082\u54f2\u5b66\u66f8\u306e\u3088\u3046\u306a\u96f0\u56f2\u6c17\u3092\u91b8\u3057\u51fa\u3057\u3066\u304d\u305f\u3002\u81ea\u5206\u306f\u3053\u3046\u3044\u3046\u8a33\u3082\u5acc\u3044\u3067\u306f\u306a\u3044\u3002<\/p>\n<p>\u3067\u3001\u672c\u66f8\u3067\u306f\u3001 cheme \u304c\u308f\u304b\u3089\u306a\u3044\u3068\u8a71\u306b\u306a\u3089\u306a\u3044\u306e\u3067\u3001\u6700\u521d\u306e\u7ae0\u306f\u3001\u6587\u6cd5\u304a\u3088\u3073\u8003\u3048\u65b9\u306e\u8aac\u660e\u306b\u8cbb\u3084\u3055\u308c\u3066\u3044\u308b\u3002<\/p>\n<p><a href=\"\/tips\/wiki.cgi?page=Scheme\" target=\"_blank\">\u3053\u3061\u3089<\/a>\u306b\u7c21\u5358\u306b\u307e\u3068\u3081\u305f\u3002\u3055\u3089\u306b\u307e\u3068\u3081\u308b\u3068\u3001<\/p>\n<p>\u78ba\u8a8d\u7528\u306e\u51e6\u7406\u7cfb\u306b\u306f\u3001<a href=\"http:\/\/plt-scheme.org\/\" target=\"_blank\">DrScheme<\/a> \u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3068\u3059\u308b\u3002<\/p>\n<h3>\u5f0f<\/h3>\n<p>\u624b\u7d9a\u304d\u306e\u4f5c\u7528\u3092\u8868\u73fe\u3002\u62ec\u5f27\u3067\u56f2\u3093\u3067\u3001\u7d44\u5408\u305b\u3068\u547c\u3076\u3002<\/p>\n<pre class=\"prettyprint linenums\">&gt; (+ 1 2)\r\n3\r\n<\/pre>\n<p>\u3053\u306e\u4f8b\u3060\u3068\u3001\u52a0\u7b97(+) \u304c\u3001\u624b\u7d9a\u304d\u3092\u8868\u3059\u6f14\u7b97\u5b50(\u30aa\u30da\u30ec\u30fc\u30bf\u30fc)\u30011\u30012 \u304c\u4f5c\u7528\u3055\u308c\u308b\u88ab\u6f14\u7b97\u5b50(\u30aa\u30da\u30e9\u30f3\u30c9)<\/p>\n<p>\u6f14\u7b97\u5b50\u3092\u5de6\u7aef\u306b\u66f8\u304f\u8a18\u6cd5\u3092\u3001\u524d\u7f6e\u8a18\u6cd5\u3068\u3044\u3046\u3002\u5229\u70b9\u3068\u3057\u3066\u3001\u4efb\u610f\u500b\u6570\u306e\u5f15\u6570\u3092\u3068\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3001\u7d44\u5408\u305b\u3092\u5165\u308c\u5b50\u306b\u3067\u304d\u308b\u3002<\/p>\n<h3>\u7279\u6b8a\u5f62\u5f0f(special forms)<\/h3>\n<p>\u5f15\u6570\u306b\u4f5c\u7528\u3057\u306a\u3044\u5834\u5408\u3001\u7d44\u5408\u305b\u3068\u306f\u547c\u3070\u305a\u3001\u7279\u6b8a\u5f62\u5f0f\u3068\u3044\u3046\u3002\u305f\u3068\u3048\u3070\u3001define <\/p>\n<pre class=\"prettyprint linenums\">&gt; (define x 2)\r\n<\/pre>\n<p>\u3053\u308c\u3067\u3001\u5909\u6570 x \u306b 2 \u3092\u30bb\u30c3\u30c8\u3059\u308b\u3002<\/p>\n<h3>\u5408\u6210\u624b\u7d9a\u304d<\/h3>\n<p>define \u3092\u3064\u304b\u3063\u3066\u3001\u6f14\u7b97\u306b\u540d\u524d\u3092\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002\u81ea\u4e57\u3092\u884c\u3046\u6f14\u7b97\u306b\u540d\u524d\u3092\u3064\u3051\u3066\u307f\u308b\u3002<\/p>\n<pre class=\"prettyprint linenums\">&gt; (define (square x) (* x x))\r\n&gt; (square 2)\r\n4\r\n<\/pre>\n<h3>\u6761\u4ef6\u5f0f\u3068\u8ff0\u8a9e<\/h3>\n<p>cond \u30fb\u30fb\u30fb \u5834\u5408\u5206\u3051<\/p>\n<p>if \u30fb\u30fb\u30fb \u5834\u5408\u304c2\u3064\u306e\u5834\u5408<\/p>\n<h3>\u8ad6\u7406\u6f14\u7b97\u5b50<\/h3>\n<p>and\u3001or\u3001not<\/p>\n<p>\u7528\u4f8b\u306f\u3001<a href=\"\/tips\/wiki.cgi?page=Scheme\" target=\"_blank\">\u3053\u3061\u3089<\/a> \u3092\u53c2\u7167\u3002<\/p>\n<h2>\u554f\u984c<\/h2>\n<p>\u554f\u984c1.1<\/p>\n<p>\u5165\u529b\u3057\u3066\u78ba\u8a8d\u3002<\/p>\n<p>\u554f\u984c1.2 <\/p>\n<p>\u3053\u308c\u3067\u3088\u3044\u3068\u601d\u3046\u3051\u3069\u30fb\u30fb\u30fb<\/p>\n<pre class=\"prettyprint linenums\">&gt; (\/ (+ 5 4 (- 2 (- 3 (+ 6 (\/ 4 5))))) \r\n     (* 3 (- 6 2) (- 2 7)))\r\n-37\/150\r\n<\/pre>\n<p>\u554f\u984c1.3 <\/p>\n<p>\u3044\u307e\u307e\u3067\u7d4c\u9a13\u3057\u305f\u8a00\u8a9e\u3068\u306e\u8003\u3048\u65b9\u306e\u9055\u3044\u3092\u601d\u3044\u77e5\u308b\u3002<\/p>\n<p>\u4eca\u306e\u77e5\u8b58\u3001\u601d\u8003\u65b9\u6cd5\u3067\u306f\u3001\u3053\u3093\u306a\u611f\u3058\u306b\u3057\u304b\u304b\u3051\u306a\u3044\u30fb\u30fb\u30fb<\/p>\n<p>\u5909\u6570\u3084\u914d\u5217\u3092\u4f7f\u308f\u305a\u306b\u30012\u756a\u76ee\u306b\u5927\u304d\u3044\u5024\u3092\u53d6\u5f97\u3059\u308b\u3063\u3066\u56f0\u96e3\u3002<\/p>\n<pre class=\"prettyprint linenums\">&gt; (define (smaller x y) (if (&lt; x y) x y))\r\n&gt; (define (last x y z) (smaller x (smaller y z)))\r\n&gt; (define (square x) (* x x))\r\n&gt; (define (q1_3 x y z) (+ \r\n                        (square (if (&gt; x (last x y z)) x (last x y z)))\r\n                        (square (if (&gt; y (last x y z)) y (last x y z)))))\r\n&gt; (q1_3 4 3 2)\r\n25\r\n<\/pre>\n<p>\u554f\u984c1.4<\/p>\n<p>\u5f15\u6570 b \u304c \u8ca0\u306e\u5024\u306e\u5834\u5408\u3001\u7b26\u53f7\u3092\u53cd\u8ee2\u3057\u7d76\u5bfe\u5024\u3092\u53d6\u5f97\u3057\u3001a \u3068\u52a0\u7b97\u3059\u308b <\/p>\n<p>\u304a\u30fc\u306a\u3093\u3068\u3001\u88ab\u6f14\u7b97\u5b50\u306b\u6f14\u7b97\u5b50\u3092\u7f6e\u304f\u3068\u3001\u305d\u306e\u6f14\u7b97\u5b50\u304c\u4f5c\u7528\u3059\u308b\u306e\u304b\uff01 <\/p>\n<pre class=\"prettyprint linenums\">&gt; (define (a-plus-abs-b a b)\r\n    ((if (&gt; b 0) + -) a b))\r\n&gt; (a-plus-abs-b 2 -3)\r\n5\r\n<\/pre>\n<p>\u304a\u30fc\u7d50\u69cb\u3057\u3093\u3069\u3044\u306a\u30fc\u3002\u4eca\u65e5\u306f\u3053\u3053\u307e\u3067\u3002<\/p>\n<p>\u3086\u3063\u304f\u308a\u3067\u3082\u3044\u3044\u304b\u3089\u4f55\u3068\u304b\u7d9a\u3051\u3066\u3044\u304d\u305f\u3044\u3002\u3002\u3002 <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u300c\u8a08\u7b97\u6a5f\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u69cb\u9020\u3068\u89e3\u91c8\u300d \u3092\u8cfc\u5165\u3002\u3057\u3063\u304b\u308a\u3068\u8aad\u307f\u8fbc\u307f\u305f\u3044\u306e\u3067\u30011\u5e74\u304f\u3089\u3044\u304b\u3051\u3066\u4e00\u4eba\u8aad\u66f8\u4f1a\u3068\u3057\u3083\u308c\u8fbc\u3082\u3046\u3068\u601d\u3046\u3002 \u30fb\u30fb\u30fb\u96fb\u8eca\u3067\u8aad\u3080\u3060\u3051\u3067\u306f\u3082\u3063\u305f\u3044\u306a\u3044\u3002 1.\u624b\u7d9a\u304d\u306b\u3088\u308b\u62bd\u8c61\u306e\u69cb\u7bc9 \u307e\u305a\u3001\u5168\u7de8\u3092\u901a\u3057\u3066\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[34,36],"tags":[],"class_list":["post-209","post","type-post","status-publish","format-standard","hentry","category-scheme","category-reading"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/209","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=209"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/209\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}