A series is a data structure much like a sequence, with similar kinds of operations. The difference is that in many situations, operations on series may be composed functionally and yet execute iteratively, without the need to construct intermediate series values explicitly. In this manner, series provide both the clarity of a functional programming style and the efficiency of an iterative program
30分プログラム、その182。OCamlでmapreduce。 OCamlのチャネル(Event.channel)を覚えたので、さっそく使ってmapreduceを実装してみよう。正直、これであってるのかあまり自信がない。 自分はmapreduceを次のように理解している。 mapreduce f g init xsという形で使う fはf c xという風に使われる cはチャネルでxはxsの任意の要素 xから何かを計算してその結果をcに送信する 送信するのは(key,value)という形 これがmapに相当する gはg key [value] initのように使われる mapの結果がkeyごとにまとめられている。そしてそれをfoldするのに使われる これがreduce(fold)に相当する 最終的にgでreduceした値が帰る ちなみにスレッドを使ったプログラムは、次のようにコンパイルする。
\閉鎖予定のサイトも売れるかも?/ アクセスがないサイトもコンテンツ価値で売れる場合も… ドメインの有効期限を更新してサイト売却にトライしてみましょう
This tutorial provides an overview of the PLT Scheme module system. Complete details can be found in PLT MzScheme: Language Manual. If you have DrScheme, search with Help Desk to quickly find details on any particular topic. Defining and Using Modules A module declaration has the shape (module module-name-identifier implementation-language-name expression-or-definition ...) The module system works
%TEXTHEAD%Welcome to the Schematics Scheme Cookbook. The Schematics Scheme Cookbook is a collaborative effort to produce documentation and recipes for using Scheme for common tasks. See the BookIntroduction for more information on the Cookbook's goals, and the important ContributorAgreement statement. Cookbook Starting Points Table of Contents (with recipes) Getting started with PltScheme The F
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く