prelude 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,33 @@
1
+
2
+ <?xml version="1.0" encoding="iso-8859-1"?>
3
+ <!DOCTYPE html
4
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
+
7
+ <!--
8
+
9
+ Files
10
+
11
+ -->
12
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
+ <head>
14
+ <title>Files</title>
15
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
16
+ <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
17
+ <base target="docwin" />
18
+ </head>
19
+ <body>
20
+ <div id="index">
21
+ <h1 class="section-bar">Files</h1>
22
+ <div id="index-entries">
23
+ <a href="files/CHANGELOG.html">CHANGELOG</a><br />
24
+ <a href="files/README.html">README</a><br />
25
+ <a href="files/TODO.html">TODO</a><br />
26
+ <a href="files/lib/prelude_rb.html">lib/prelude.rb</a><br />
27
+ <a href="files/lib/prelude/list_rb.html">lib/prelude/list.rb</a><br />
28
+ <a href="files/lib/prelude/monad_rb.html">lib/prelude/monad.rb</a><br />
29
+ <a href="files/lib/prelude/tuple_rb.html">lib/prelude/tuple.rb</a><br />
30
+ </div>
31
+ </div>
32
+ </body>
33
+ </html>
@@ -0,0 +1,124 @@
1
+
2
+ <?xml version="1.0" encoding="iso-8859-1"?>
3
+ <!DOCTYPE html
4
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
+
7
+ <!--
8
+
9
+ Methods
10
+
11
+ -->
12
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
+ <head>
14
+ <title>Methods</title>
15
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
16
+ <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
17
+ <base target="docwin" />
18
+ </head>
19
+ <body>
20
+ <div id="index">
21
+ <h1 class="section-bar">Methods</h1>
22
+ <div id="index-entries">
23
+ <a href="classes/Prelude/List.html#M000012">+ (Prelude::List)</a><br />
24
+ <a href="classes/Proc.html#M000004"><< (Proc)</a><br />
25
+ <a href="classes/Prelude/List.html#M000031">all (Prelude::List)</a><br />
26
+ <a href="classes/Prelude/List.html#M000028">and (Prelude::List)</a><br />
27
+ <a href="classes/Prelude/List.html#M000030">any (Prelude::List)</a><br />
28
+ <a href="classes/Prelude/Monad.html#M000011">bind (Prelude::Monad)</a><br />
29
+ <a href="classes/Prelude/List.html#M000058">break (Prelude::List)</a><br />
30
+ <a href="classes/Prelude/List.html#M000025">concat (Prelude::List)</a><br />
31
+ <a href="classes/Prelude/List.html#M000027">concatMap (Prelude::List)</a><br />
32
+ <a href="classes/Prelude/List.html#M000026">concat_map (Prelude::List)</a><br />
33
+ <a href="classes/Proc.html#M000003">curry (Proc)</a><br />
34
+ <a href="classes/Symbol.html#M000002">curry (Symbol)</a><br />
35
+ <a href="classes/Prelude/List.html#M000047">cycle (Prelude::List)</a><br />
36
+ <a href="classes/Prelude/List.html#M000095">delete (Prelude::List)</a><br />
37
+ <a href="classes/Prelude/List.html#M000050">drop (Prelude::List)</a><br />
38
+ <a href="classes/Prelude/List.html#M000056">dropWhile (Prelude::List)</a><br />
39
+ <a href="classes/Prelude/List.html#M000055">drop_while (Prelude::List)</a><br />
40
+ <a href="classes/Prelude/List.html#M000066">elem (Prelude::List)</a><br />
41
+ <a href="classes/Prelude/List.html#M000072">elemIndex (Prelude::List)</a><br />
42
+ <a href="classes/Prelude/List.html#M000074">elemIndices (Prelude::List)</a><br />
43
+ <a href="classes/Prelude/List.html#M000071">elem_index (Prelude::List)</a><br />
44
+ <a href="classes/Prelude/List.html#M000073">elem_indices (Prelude::List)</a><br />
45
+ <a href="classes/Prelude/Monad.html#M000009">empty (Prelude::Monad)</a><br />
46
+ <a href="classes/Prelude/List.html#M000018">f_foldl (Prelude::List)</a><br />
47
+ <a href="classes/Prelude/List.html#M000070">filter (Prelude::List)</a><br />
48
+ <a href="classes/Prelude/List.html#M000076">findIndex (Prelude::List)</a><br />
49
+ <a href="classes/Prelude/List.html#M000078">findIndices (Prelude::List)</a><br />
50
+ <a href="classes/Prelude/List.html#M000075">find_index (Prelude::List)</a><br />
51
+ <a href="classes/Prelude/List.html#M000077">find_indices (Prelude::List)</a><br />
52
+ <a href="classes/Prelude/List.html#M000019">foldl (Prelude::List)</a><br />
53
+ <a href="classes/Prelude/List.html#M000021">foldl1 (Prelude::List)</a><br />
54
+ <a href="classes/Prelude/List.html#M000022">foldl1_ (Prelude::List)</a><br />
55
+ <a href="classes/Prelude/List.html#M000020">foldl_ (Prelude::List)</a><br />
56
+ <a href="classes/Prelude/List.html#M000023">foldr (Prelude::List)</a><br />
57
+ <a href="classes/Prelude/List.html#M000024">foldr1 (Prelude::List)</a><br />
58
+ <a href="classes/Prelude/Tuple.html#M000006">fst (Prelude::Tuple)</a><br />
59
+ <a href="classes/Prelude/List.html#M000059">group (Prelude::List)</a><br />
60
+ <a href="classes/Prelude/List.html#M000013">head (Prelude::List)</a><br />
61
+ <a href="classes/Prelude/List.html#M000015">init (Prelude::List)</a><br />
62
+ <a href="classes/Prelude/List.html#M000060">inits (Prelude::List)</a><br />
63
+ <a href="classes/Prelude/List.html#M000098">insert (Prelude::List)</a><br />
64
+ <a href="classes/Prelude/List.html#M000097">intersect (Prelude::List)</a><br />
65
+ <a href="classes/Prelude/List.html#M000017">intersperse (Prelude::List)</a><br />
66
+ <a href="classes/Prelude/List.html#M000063">isPrefixOf (Prelude::List)</a><br />
67
+ <a href="classes/Prelude/List.html#M000065">isSuffixOf (Prelude::List)</a><br />
68
+ <a href="classes/Prelude/List.html#M000062">is_prefix_of (Prelude::List)</a><br />
69
+ <a href="classes/Prelude/List.html#M000064">is_suffix_of (Prelude::List)</a><br />
70
+ <a href="classes/Prelude/List.html#M000044">iterate (Prelude::List)</a><br />
71
+ <a href="classes/Prelude/Monad.html#M000010">join (Prelude::Monad)</a><br />
72
+ <a href="classes/Prelude/List.html#M000090">lines (Prelude::List)</a><br />
73
+ <a href="classes/Prelude/List.html#M000069">lookup (Prelude::List)</a><br />
74
+ <a href="classes/Prelude/List.html#M000041">mapAccumL (Prelude::List)</a><br />
75
+ <a href="classes/Prelude/List.html#M000043">mapAccumR (Prelude::List)</a><br />
76
+ <a href="classes/Prelude/List.html#M000040">map_accum_l (Prelude::List)</a><br />
77
+ <a href="classes/Prelude/List.html#M000042">map_accum_r (Prelude::List)</a><br />
78
+ <a href="classes/Prelude/List.html#M000034">maximum (Prelude::List)</a><br />
79
+ <a href="classes/Prelude/List.html#M000035">minimum (Prelude::List)</a><br />
80
+ <a href="classes/Prelude/Tuple.html#M000005">new (Prelude::Tuple)</a><br />
81
+ <a href="classes/Prelude/List.html#M000068">notElem (Prelude::List)</a><br />
82
+ <a href="classes/Prelude/List.html#M000067">not_elem (Prelude::List)</a><br />
83
+ <a href="classes/Prelude/List.html#M000094">nub (Prelude::List)</a><br />
84
+ <a href="classes/Prelude/List.html#M000016">null (Prelude::List)</a><br />
85
+ <a href="classes/Prelude/List.html#M000029">or (Prelude::List)</a><br />
86
+ <a href="classes/Prelude/List.html#M000033">product (Prelude::List)</a><br />
87
+ <a href="classes/Prelude/List.html#M000045">repeat (Prelude::List)</a><br />
88
+ <a href="classes/Prelude/List.html#M000046">replicate (Prelude::List)</a><br />
89
+ <a href="classes/Prelude/List.html#M000036">scanl (Prelude::List)</a><br />
90
+ <a href="classes/Prelude/List.html#M000037">scanl1 (Prelude::List)</a><br />
91
+ <a href="classes/Prelude/List.html#M000038">scanr (Prelude::List)</a><br />
92
+ <a href="classes/Prelude/List.html#M000039">scanr1 (Prelude::List)</a><br />
93
+ <a href="classes/Prelude/Tuple.html#M000007">snd (Prelude::Tuple)</a><br />
94
+ <a href="classes/Prelude/List.html#M000057">span (Prelude::List)</a><br />
95
+ <a href="classes/Prelude/List.html#M000052">splitAt (Prelude::List)</a><br />
96
+ <a href="classes/Prelude/List.html#M000051">split_at (Prelude::List)</a><br />
97
+ <a href="classes/Prelude/List.html#M000032">sum (Prelude::List)</a><br />
98
+ <a href="classes/Prelude/List.html#M000014">tail (Prelude::List)</a><br />
99
+ <a href="classes/Prelude/List.html#M000061">tails (Prelude::List)</a><br />
100
+ <a href="classes/Prelude/List.html#M000049">take (Prelude::List)</a><br />
101
+ <a href="classes/Prelude/List.html#M000054">takeWhile (Prelude::List)</a><br />
102
+ <a href="classes/Prelude/List.html#M000053">take_while (Prelude::List)</a><br />
103
+ <a href="classes/Symbol.html#M000001">to_proc (Symbol)</a><br />
104
+ <a href="classes/Prelude/List.html#M000048">unfoldr (Prelude::List)</a><br />
105
+ <a href="classes/Prelude/List.html#M000096">union (Prelude::List)</a><br />
106
+ <a href="classes/Prelude/List.html#M000092">unlines (Prelude::List)</a><br />
107
+ <a href="classes/Prelude/List.html#M000093">unwords (Prelude::List)</a><br />
108
+ <a href="classes/Prelude/List.html#M000087">unzip (Prelude::List)</a><br />
109
+ <a href="classes/Prelude/List.html#M000088">unzip3 (Prelude::List)</a><br />
110
+ <a href="classes/Prelude/List.html#M000089">unzip4 (Prelude::List)</a><br />
111
+ <a href="classes/Prelude/List.html#M000091">words (Prelude::List)</a><br />
112
+ <a href="classes/Prelude/Monad.html#M000008">wrap (Prelude::Monad)</a><br />
113
+ <a href="classes/Prelude/List.html#M000079">zip3 (Prelude::List)</a><br />
114
+ <a href="classes/Prelude/List.html#M000080">zip4 (Prelude::List)</a><br />
115
+ <a href="classes/Prelude/List.html#M000082">zipWith (Prelude::List)</a><br />
116
+ <a href="classes/Prelude/List.html#M000084">zipWith3 (Prelude::List)</a><br />
117
+ <a href="classes/Prelude/List.html#M000086">zipWith4 (Prelude::List)</a><br />
118
+ <a href="classes/Prelude/List.html#M000081">zip_with (Prelude::List)</a><br />
119
+ <a href="classes/Prelude/List.html#M000083">zip_with3 (Prelude::List)</a><br />
120
+ <a href="classes/Prelude/List.html#M000085">zip_with4 (Prelude::List)</a><br />
121
+ </div>
122
+ </div>
123
+ </body>
124
+ </html>
@@ -0,0 +1,27 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
5
+
6
+ <!--
7
+
8
+ Prelude -- a Haskell-like library for functional programming
9
+
10
+ -->
11
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
12
+ <head>
13
+ <title>Prelude -- a Haskell-like library for functional programming</title>
14
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
+ </head>
16
+
17
+ <frameset cols="20%,*">
18
+ <frameset rows="15%,35%,50%">
19
+ <frame src="fr_file_index.html" title="Files" name="Files">
20
+ <frame src="fr_class_index.html" name="Classes">
21
+ <frame src="fr_method_index.html" name="Methods">
22
+ </frameset>
23
+ <frameset>
24
+ <frame src="files/README.html" name="docwin">
25
+ </frameset>
26
+ </frameset>
27
+ </html>
@@ -0,0 +1,208 @@
1
+
2
+ body {
3
+ font-family: Verdana,Arial,Helvetica,sans-serif;
4
+ font-size: 90%;
5
+ margin: 0;
6
+ margin-left: 40px;
7
+ padding: 0;
8
+ background: #efefef;
9
+ }
10
+
11
+ h1,h2,h3,h4 { margin: 0; color: #efefef; background: transparent; }
12
+ h1 { font-size: 150%; }
13
+ h2,h3,h4 { margin-top: 1em; }
14
+
15
+ a { background: #eef; color: #039; text-decoration: none; }
16
+ a:hover { background: #039; color: #eef; }
17
+
18
+ /* Override the base stylesheet's Anchor inside a table cell */
19
+ td > a {
20
+ background: transparent;
21
+ color: #039;
22
+ text-decoration: none;
23
+ }
24
+
25
+ /* and inside a section title */
26
+ .section-title > a {
27
+ background: transparent;
28
+ color: #eee;
29
+ text-decoration: none;
30
+ }
31
+
32
+ /* === Structural elements =================================== */
33
+
34
+ div#index {
35
+ margin: 0;
36
+ margin-left: -40px;
37
+ padding: 0;
38
+ font-size: 90%;
39
+ }
40
+
41
+
42
+ div#index a {
43
+ margin-left: 0.7em;
44
+ }
45
+
46
+ div#index .section-bar {
47
+ margin-left: 0px;
48
+ padding-left: 0.7em;
49
+ background: #ccc;
50
+ font-size: small;
51
+ }
52
+
53
+
54
+ div#classHeader, div#fileHeader {
55
+ width: auto;
56
+ color: white;
57
+ padding: 0.5em 1.5em 0.5em 1.5em;
58
+ margin: 0;
59
+ margin-left: -40px;
60
+ border-bottom: 3px solid #006;
61
+ }
62
+
63
+ div#classHeader a, div#fileHeader a {
64
+ background: inherit;
65
+ color: white;
66
+ }
67
+
68
+ div#classHeader td, div#fileHeader td {
69
+ background: inherit;
70
+ color: white;
71
+ }
72
+
73
+
74
+ div#fileHeader {
75
+ background: #057;
76
+ }
77
+
78
+ div#classHeader {
79
+ background: #048;
80
+ }
81
+
82
+
83
+ .class-name-in-header {
84
+ font-size: 180%;
85
+ font-weight: bold;
86
+ }
87
+
88
+
89
+ div#bodyContent {
90
+ padding: 0 0 0 0;
91
+ }
92
+
93
+ div#description {
94
+ padding: 0.5em 0.5em;
95
+ border: 1px dotted #999;
96
+ margin-left: -40px;
97
+ }
98
+
99
+ div#description h1,h2,h3,h4,h5,h6 {
100
+ color: #125;;
101
+ background: transparent;
102
+ }
103
+
104
+ div#validator-badges {
105
+ text-align: center;
106
+ }
107
+ div#validator-badges img { border: 0; }
108
+
109
+ div#copyright {
110
+ color: #333;
111
+ background: #efefef;
112
+ font: 0.75em sans-serif;
113
+ margin-top: 5em;
114
+ margin-bottom: 0;
115
+ padding: 0.5em 2em;
116
+ }
117
+
118
+
119
+ /* === Classes =================================== */
120
+
121
+ table.header-table {
122
+ color: white;
123
+ font-size: small;
124
+ }
125
+
126
+ .type-note {
127
+ font-size: small;
128
+ color: #DEDEDE;
129
+ }
130
+
131
+ .xxsection-bar {
132
+ background: #eee;
133
+ color: #333;
134
+ padding: 3px;
135
+ }
136
+
137
+ .section-bar {
138
+ color: #333;
139
+ border-bottom: 1px solid #999;
140
+ margin-left: -20px;
141
+ }
142
+
143
+
144
+ .section-title {
145
+ background: #79a;
146
+ color: #eee;
147
+ padding: 3px;
148
+ margin-top: 2em;
149
+ margin-left: -30px;
150
+ border: 1px solid #999;
151
+ }
152
+
153
+ .top-aligned-row { vertical-align: top }
154
+ .bottom-aligned-row { vertical-align: bottom }
155
+
156
+ /* --- Context section classes ----------------------- */
157
+
158
+ .context-row { }
159
+ .context-item-name { font-family: monospace; font-weight: bold; color: black; }
160
+ .context-item-value { font-size: small; color: #448; }
161
+ .context-item-desc { color: #333; padding-left: 2em; }
162
+
163
+ /* --- Method classes -------------------------- */
164
+ .method-detail {
165
+ background: #efefef;
166
+ padding: 0;
167
+ margin-top: 0.5em;
168
+ margin-bottom: 1em;
169
+ border: 1px dotted #ccc;
170
+ }
171
+ .method-heading {
172
+ color: black;
173
+ background: #ccc;
174
+ border-bottom: 1px solid #666;
175
+ padding: 0.2em 0.5em 0 0.5em;
176
+ }
177
+ .method-signature { color: black; background: inherit; }
178
+ .method-name { font-weight: bold; }
179
+ .method-args { font-style: italic; }
180
+ .method-description { padding: 0 0.5em 0 0.5em; }
181
+
182
+ /* --- Source code sections -------------------- */
183
+
184
+ a.source-toggle { font-size: 90%; }
185
+ div.method-source-code {
186
+ background: #888888;
187
+ color: #ffdead;
188
+ margin: 1em;
189
+ padding: 0.5em;
190
+ border: 1px dashed #999;
191
+ overflow: hidden;
192
+ }
193
+
194
+ div.method-source-code pre { color: #ffdead; overflow: hidden; }
195
+
196
+ /* --- Ruby keyword styles --------------------- */
197
+
198
+ .standalone-code { background: #221111; color: #ffdead; overflow: hidden; }
199
+
200
+ .ruby-constant { color: #7fffd4; background: transparent; }
201
+ .ruby-keyword { color: #00ffff; background: transparent; }
202
+ .ruby-ivar { color: #eedd82; background: transparent; }
203
+ .ruby-operator { color: #00ffee; background: transparent; }
204
+ .ruby-identifier { color: #ffdead; background: transparent; }
205
+ .ruby-node { color: #ffa07a; background: transparent; }
206
+ .ruby-comment { color: #b22222; font-weight: bold; background: transparent; }
207
+ .ruby-regexp { color: #ffa07a; background: transparent; }
208
+ .ruby-value { color: #7fffd4; background: transparent; }
@@ -6,22 +6,22 @@
6
6
  #
7
7
  # Copyright (C) 2006 APP Design, Inc.
8
8
  #
9
- # This program is free software; you can redistribute it and/or modify
10
- # it under the terms of the GNU General Public License as published by
11
- # the Free Software Foundation; either version 2 of the License, or
12
- # (at your option) any later version.
9
+ # This library is free software; you can redistribute it and/or
10
+ # modify it under the terms of the GNU Lesser General Public
11
+ # License as published by the Free Software Foundation; either
12
+ # version 2.1 of the License, or (at your option) any later version.
13
13
  #
14
- # This program is distributed in the hope that it will be useful,
14
+ # This library is distributed in the hope that it will be useful,
15
15
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- # GNU General Public License for more details.
16
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
+ # Lesser General Public License for more details.
18
18
  #
19
- # You should have received a copy of the GNU General Public License along
20
- # with this program; if not, write to the Free Software Foundation, Inc.,
21
- # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
+ # You should have received a copy of the GNU Lesser General Public
20
+ # License along with this library; if not, write to the Free Software
21
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22
22
  #++
23
23
  #
24
- # $Id: prelude.rb 2 2006-08-25 00:11:17Z prelude $
24
+ # $Id: prelude.rb 8 2006-09-06 17:06:22Z prelude $
25
25
 
26
26
  $:.unshift(File.dirname(__FILE__))
27
27
 
@@ -30,12 +30,11 @@ require 'prelude/tuple'
30
30
  require 'prelude/monad'
31
31
 
32
32
  module Prelude
33
- VERSION='0.0.1'
33
+ VERSION='0.0.2'
34
34
  end # Prelude
35
35
 
36
36
  class Symbol
37
37
 
38
- # See http://blogs.pragprog.com/cgi-bin/pragdave.cgi/Tech/Ruby/ToProc.rdoc for the detailed discussion
39
38
  def to_proc
40
39
  proc { |obj, *args| obj.send(self, *args) }
41
40
  end
@@ -48,8 +47,6 @@ end # Symbol
48
47
 
49
48
  class Proc
50
49
 
51
- # See also http://rubyforge.org/projects/rubymurray/ for an
52
- # elaborate port of Perl's Sub::Curry library
53
50
  def curry(one, *args)
54
51
  proc{ |*args| self.call(one, *args)}
55
52
  end