{"id":1479,"date":"2007-02-19T00:00:00","date_gmt":"2007-02-18T15:00:00","guid":{"rendered":"http:\/\/oohito.com\/nqthm\/archives\/1479"},"modified":"2007-02-19T00:00:00","modified_gmt":"2007-02-18T15:00:00","slug":"pepsi%e5%8b%89%e5%bc%b7%e4%b8%ad-2","status":"publish","type":"post","link":"https:\/\/oohito.com\/nqthm\/archives\/1479","title":{"rendered":"pepsi\u52c9\u5f37\u4e2d"},"content":{"rendered":"<div class=\"section\">\n<p>\u30b5\u30f3\u30d7\u30eb\u3092\u4f5c\u3063\u3066\u307f\u3088\u3046\u3068<a href=\"http:\/\/d.hatena.ne.jp\/sumim\/\">id:sumim<\/a>\u3055\u3093\u306e\u81ea\u7136\u5bfe\u6570\u306e\u5e95\u3092\u6c42\u3081\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u79fb\u690d\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>Interval\u304c\u306a\u3044\u306e\u3067\u3044\u308d\u3044\u308d\u8ffd\u52a0\u3057\u305f\u305b\u3044\u3067\u7d50\u69cb\u9577\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<pre>\n{ import: st80 }\nInterval : Collection (start stop step)\nInterval new\n[\nself := super new.\nstart := 0.\nstop := 0.\nstep := 1.\n]\nInterval start: aNumber [ start := aNumber ]\nInterval stop: aNumber  [ stop := aNumber ]\nInterval step: aNumber  [ step := aNumber ]\nInterval do: aBlock\n[\n| aValue |\naValue := start.\nstep &#60; 0\nifTrue: [  [stop &#60;= aValue]\nwhileTrue:\n[aBlock value: aValue.\naValue := aValue + step]  ]\nifFalse: [  [stop &#62;= aValue]\nwhileTrue:\n[aBlock value: aValue.\naValue := aValue + step]  ]\n]\nInteger to: aNumber\n[\n| obj |\nobj := Interval new.\nobj start: self.\nobj stop: aNumber.\n^ obj\n]\nInteger factorial\n[\nself = 0 ifTrue: [^ 1].\nself &#62; 0 ifTrue: [^ self * (self - 1) factorial].\nself error: 'Not valid for negative integers'\n]\n[\n((1 to: 12) inject: 1 into: [:e :i | e + (1 \/ i factorial)])  println\n]\n<\/pre>\n<p>LargePositiveInteger does not understand &#8216;asFloat&#8217;<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u5272\u308a\u7b97\u304c\u9014\u4e2d\u3067\u3067\u304d\u306a\u304f\u306a\u308b\u305f\u3081100\u3067\u306a\u304f12\u3067\u7d42\u308f\u308a\u3067\u3059\u3002\u81ea\u5206\u3067\u5b9f\u88c5\u3059\u308c\u3070\u3044\u3044\u3093\u3067\u3059\u304c\u9762\u5012\u306a\u306e\u3067\u3002<\/p>\n<p>Interval\u3084factorial\u306fSqueak\u306e\u3082\u306e\u306e\u307b\u307c\u30b3\u30d4\u30da\u3067\u3059\u3002\u7d50\u69cb\u3042\u3063\u3055\u308a\u52d5\u3044\u3066\u3057\u307e\u3046\u306e\u3067\u62cd\u5b50\u629c\u3051\u3057\u307e\u3057\u305f\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u30b5\u30f3\u30d7\u30eb\u3092\u4f5c\u3063\u3066\u307f\u3088\u3046\u3068id:sumim\u3055\u3093\u306e\u81ea\u7136\u5bfe\u6570\u306e\u5e95\u3092\u6c42\u3081\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u79fb\u690d\u3057\u3066\u307f\u307e\u3057\u305f\u3002 Interval\u304c\u306a\u3044\u306e\u3067\u3044\u308d\u3044\u308d\u8ffd\u52a0\u3057\u305f\u305b\u3044\u3067\u7d50\u69cb\u9577\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002 { import: st80 } Inter&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-1479","post","type-post","status-publish","format-standard","hentry","category-21"],"_links":{"self":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts\/1479","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/comments?post=1479"}],"version-history":[{"count":0,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts\/1479\/revisions"}],"wp:attachment":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/media?parent=1479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/categories?post=1479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/tags?post=1479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}