All the data structures below, are the works of Chris Okasaki, Phil Bagwell and those that are discussed in the book Purely Functional Data Structures by Chris Okasaki. And the data structures have been entirely implemented in Typed Scheme.
Husk is a dialect of Scheme written in Haskell that implements a superset of the R5RS standard and a large portion of the R7RS-small language. Advanced features are provided including continuations, hygienic macros, libraries, and a full numeric tower. Husk may be used as either a stand-alone interpreter or as an extension language within a larger Haskell application. By closely following the R5RS
GaucheでProject Eulerを解いてみよう 問題1から31まで解きました(gemma(2008/03/31 19:25:20 PDT) (use srfi-1) (use util.stream) (use math.mt-random) (use util.combinations) (use gauche.sequence) n以下の素数のリストを返す関数(エラトステネスの篩) (define (primes n) (if (<= n 2) '() (let loop ((l (unfold (cut > <> n) values (cut + <> 2) 3)) (prime-list '(2))) (let1 m (car l) (if (> (expt m 2) n) (append (reverse prime-list) l) (loop (remove (lam
by Philip L. Bewig Status This SRFI is currently in final status. Here is an explanation of each status that a SRFI can hold. To provide input on this SRFI, please send email to srfi-41@nospamsrfi.schemers.org. To subscribe to the list, follow these instructions. You can access previous messages via the mailing list archive. Received: 2007-10-24 Revised: 2007-11-14 Revised: 2007-11-14 Revised: 200
by Philip L. Bewig Status This SRFI is currently in withdrawn status. Here is an explanation of each status that a SRFI can hold. To provide input on this SRFI, please send email to srfi-40@nospamsrfi.schemers.org. To subscribe to the list, follow these instructions. You can access previous messages via the mailing list archive. Received: 2003-02-03 Draft: 2003-02-03--2003-04-03 Revised: 2003-08-0
Scheme Macros for Common Lisp [Download mbe.lsp] Dorai Sitaram mbe.lsp defines for Common Lisp the macro definers define-syntax, let-syntax, and letrec-syntax, as described in the Scheme report R5RS [3]. These macro definers, also called macro by example (MBE), use simple patterns, including ellipsis, to specify how a macro should be expanded. They were propounded by Eugene Kohlbecker [1, 2] in th
Web上にあるほとんどのHaskellチュートリアルは言語についてのマニュアルのような教え方をしようとしているようです。それらには言語の文法、概念が少し載っていて、読者に対話環境でいくつかの簡単な関数を作るように指示します。よく機能する有用なプログラムの書き方は大抵最後にまわされるか、そもそも省かれていたりします。 このチュートリアルは違う方針を取ります。コマンドライン引数解析から始めて、完全に機能するR5RS Schemeのかなり大きなサブセットの実装まで進みます。道すがら、Haskellの持つI/O、mutable state、dynamic typing、エラー処理、そして構文解析機能を学びます。このチュートリアルを終える頃には、あなたはHaskellとScheme両方がかなり良くわかるようになっているはずです。 このチュートリアルの対象読者は主に以下の2種類です。 LispかSch
@ayato_p GaucheはHEADを使うものだあああああああああああああ 2013-05-18 10:41:08 via twicca to @ayato_p ということで、GaucheはGitHubのHEADを使うのがなうでヤングらしいので、さくっとやってみる。 と、思ってVPSでHEAD入れようとして、コケまくってたら助言を頂いた。 @ayato_p @valvallow GaucheのHEADのビルドにはGaucheが必要です。Gaucheが動いているマシンでHEADを落として、./DIST tgzでビルドできるtarballができますよん 2013-05-18 11:13:26 via twicca to @ayato_p GaucheのHEAD入れるのにGaucheないとダメなんや…。 そんな感じでさくっと… git clone https://github.com/shi
つーか、fold の弱点として、言語によって引数の順番がまちまちで、 正直憶えきれないってのがあるんだよな。誰か対応表とか作ってくれんもんか。 jijixi's diary - fold, map, for-each この中から一つ選ぶとしたらどれ? 確かにいろいろとややこしいのでまとめてみました。 いくつかの言語について大雑把に表にすると次のような感じ。 言語 関数 Haskell, OCaml, Scheme, Erlang foldl* f init items C++ accumulate(begin, end, init, f) Ruby*, JavaScript items.inject(init, f) Python, Perl* reduce(f, items [, init]) 言語 畳み込む二項演算 Scheme(SRFI)*, Erlang f(item, acc)
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く