1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
|
<html>
<head>
<title>Overview - clojure-contrib v1.3 API documentation</title>
<link href="../static/favicon.png" rel="icon" />
<link href="../static/favicon.png" rel="shortcut icon" />
<link media="all" type="text/css" href="../static/clojure.css" rel="stylesheet" />
<link media="all" type="text/css" href="../static/wiki.css" rel="stylesheet" />
<link media="all" type="text/css" href="../static/internal.css" rel="stylesheet" />
<!-- TODO: are we using these (from clojure.org)? If so, add the files -->
<script src="file/view/code_highlighter.js" type="text/javascript"></script>
<script src="file/view/clojure.js" type="text/javascript"></script>
<style>.menuWrapper{height: 36px;}</style>
<!--[if lte IE 6]>
<link rel="stylesheet" href="http://www.wikispaces.com/_/2009051601/s/internal_ie.css" type="text/css" />
<![endif]-->
</head>
<!--
This document was auto-generated from the source by the clojure autodoc system.
To report errors or ask questions about the overall documentation structure, formatting,
etc., contact Tom Faulhaber (google mail name: tomfaulhaber).
For errors in the documentation of a particular namespace, contact the author of that
namespace.
-->
<body>
<div id="AllContentContainer">
<div id="Header">
<a id="Logo" href="index.html"><img alt="Clojure" height="100" width="100" src="../static/clojure-icon.gif" /></a>
<h1><a title="page header title" id="page-header" href="index.html">Clojure-contrib API Reference</a></h1>
</div>
<div id="leftcolumn"><div style="text-align: center;"></div>
<div class="menu">
<div class="WikiCustomNav WikiElement wiki">
<span class="toc-header"><span id="project-name">clojure-contrib</span> <span id="version">v1.3</span> API</span><br />
<ul>
<li><a class="wiki_link" href="index.html">Overview</a></li>
<li><a class="wiki_link" href="api-index.html">API Index</a></li>
</ul>
<span class="toc-header">Namespaces</span>
<ul id="left-sidebar-list">
<li><a href="accumulators-api.html" class="wiki_link">accumulators</a></li><li><a href="agent-utils-api.html" class="wiki_link">agent-utils</a></li><li><a href="base64-api.html" class="wiki_link">base64</a></li><li><a href="classpath-api.html" class="wiki_link">classpath</a></li><li><a href="combinatorics-api.html" class="wiki_link">combinatorics</a></li><li><a href="command-line-api.html" class="wiki_link">command-line</a></li><li><a href="complex-numbers-api.html" class="wiki_link">complex-numbers</a></li><li><a href="cond-api.html" class="wiki_link">cond</a></li><li><a href="condition-api.html" class="wiki_link">condition</a></li><li><a href="core-api.html" class="wiki_link">core</a></li><li><a href="dataflow-api.html" class="wiki_link">dataflow</a></li><li><a href="datalog-api.html" class="wiki_link">datalog</a></li><li><a href="def-api.html" class="wiki_link">def</a></li><li><a href="error-kit-api.html" class="wiki_link">error-kit</a></li><li><a href="except-api.html" class="wiki_link">except</a></li><li><a href="fcase-api.html" class="wiki_link">fcase</a></li><li><a href="find-namespaces-api.html" class="wiki_link">find-namespaces</a></li><li><a href="fnmap-api.html" class="wiki_link">fnmap</a></li><li><a href="gen-html-docs-api.html" class="wiki_link">gen-html-docs</a></li><li><a href="generic.arithmetic-api.html" class="wiki_link">generic.arithmetic</a></li><li><a href="generic.collection-api.html" class="wiki_link">generic.collection</a></li><li><a href="generic.comparison-api.html" class="wiki_link">generic.comparison</a></li><li><a href="generic.functor-api.html" class="wiki_link">generic.functor</a></li><li><a href="generic.math-functions-api.html" class="wiki_link">generic.math-functions</a></li><li><a href="graph-api.html" class="wiki_link">graph</a></li><li><a href="greatest-least-api.html" class="wiki_link">greatest-least</a></li><li><a href="import-static-api.html" class="wiki_link">import-static</a></li><li><a href="jar-api.html" class="wiki_link">jar</a></li><li><a href="java-utils-api.html" class="wiki_link">java-utils</a></li><li><a href="jmx-api.html" class="wiki_link">jmx</a></li><li><a href="json-api.html" class="wiki_link">json</a></li><li><a href="lazy-seqs-api.html" class="wiki_link">lazy-seqs</a></li><li><a href="lazy-xml-api.html" class="wiki_link">lazy-xml</a></li><li><a href="logging-api.html" class="wiki_link">logging</a></li><li><a href="macro-utils-api.html" class="wiki_link">macro-utils</a></li><li><a href="macros-api.html" class="wiki_link">macros</a></li><li><a href="map-utils-api.html" class="wiki_link">map-utils</a></li><li><a href="math-api.html" class="wiki_link">math</a></li><li><a href="miglayout-api.html" class="wiki_link">miglayout</a></li><li><a href="mmap-api.html" class="wiki_link">mmap</a></li><li><a href="mock-api.html" class="wiki_link">mock</a></li><li><a href="monadic-io-streams-api.html" class="wiki_link">monadic-io-streams</a></li><li><a href="monads-api.html" class="wiki_link">monads</a></li><li><a href="ns-utils-api.html" class="wiki_link">ns-utils</a></li><li><a href="priority-map-api.html" class="wiki_link">priority-map</a></li><li><a href="probabilities.finite-distributions-api.html" class="wiki_link">probabilities.finite-distributions</a></li><li><a href="probabilities.monte-carlo-api.html" class="wiki_link">probabilities.monte-carlo</a></li><li><a href="probabilities.random-numbers-api.html" class="wiki_link">probabilities.random-numbers</a></li><li><a href="profile-api.html" class="wiki_link">profile</a></li><li><a href="prxml-api.html" class="wiki_link">prxml</a></li><li><a href="reflect-api.html" class="wiki_link">reflect</a></li><li><a href="repl-ln-api.html" class="wiki_link">repl-ln</a></li><li><a href="repl-utils-api.html" class="wiki_link">repl-utils</a></li><li><a href="seq-api.html" class="wiki_link">seq</a></li><li><a href="server-socket-api.html" class="wiki_link">server-socket</a></li><li><a href="set-api.html" class="wiki_link">set</a></li><li><a href="singleton-api.html" class="wiki_link">singleton</a></li><li><a href="sql-api.html" class="wiki_link">sql</a></li><li><a href="stream-utils-api.html" class="wiki_link">stream-utils</a></li><li><a href="strint-api.html" class="wiki_link">strint</a></li><li><a href="swing-utils-api.html" class="wiki_link">swing-utils</a></li><li><a href="test-base64-api.html" class="wiki_link">test-base64</a></li><li><a href="trace-api.html" class="wiki_link">trace</a></li><li><a href="types-api.html" class="wiki_link">types</a></li><li><a href="with-ns-api.html" class="wiki_link">with-ns</a></li><li><a href="zip-filter-api.html" class="wiki_link">zip-filter</a></li>
</ul>
<div class="BranchTOC">
<span class="toc-header">Other Versions</span>
<ul id="left-sidebar-branch-list">
<li><a href="../index.html" class="wiki_link">v1.2 (stable)</a></li><li><a href="../branch-1.1.x/index.html" class="wiki_link">v1.1 (stable)</a></li>
</ul>
</div>
<a href="http://clojure.org" class="wiki_link">Clojure Home</a>
</div>
</div>
</div>
<div id="rightcolumn">
<div id="Content">
<div class="contentBox"><div class="innerContentBox">
<div id="content_view" class="wiki wikiPage">
<div id="right-sidebar"><div id="toc">
<h1 class="nopad">Table of Contents</h1>
<div style="margin-left: 1em;" class="toc-section">
<a href="#accumulators">accumulators</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#agent-utils">agent-utils</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#base64">base64</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#classpath">classpath</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#combinatorics">combinatorics</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#command-line">command-line</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#complex-numbers">complex-numbers</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#cond">cond</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#condition">condition</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#core">core</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#dataflow">dataflow</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#datalog">datalog</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#def">def</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#error-kit">error-kit</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#except">except</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#fcase">fcase</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#find-namespaces">find-namespaces</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#fnmap">fnmap</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#gen-html-docs">gen-html-docs</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#generic.arithmetic">generic.arithmetic</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#generic.collection">generic.collection</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#generic.comparison">generic.comparison</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#generic.functor">generic.functor</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#generic.math-functions">generic.math-functions</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#graph">graph</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#greatest-least">greatest-least</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#import-static">import-static</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#jar">jar</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#java-utils">java-utils</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#jmx">jmx</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#json">json</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#lazy-seqs">lazy-seqs</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#lazy-xml">lazy-xml</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#logging">logging</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#macro-utils">macro-utils</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#macros">macros</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#map-utils">map-utils</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#math">math</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#miglayout">miglayout</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#mmap">mmap</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#mock">mock</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#monadic-io-streams">monadic-io-streams</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#monads">monads</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#ns-utils">ns-utils</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#priority-map">priority-map</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#probabilities.finite-distributions">probabilities.finite-distributions</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#probabilities.monte-carlo">probabilities.monte-carlo</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#probabilities.random-numbers">probabilities.random-numbers</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#profile">profile</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#prxml">prxml</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#reflect">reflect</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#repl-ln">repl-ln</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#repl-utils">repl-utils</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#seq">seq</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#server-socket">server-socket</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#set">set</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#singleton">singleton</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#sql">sql</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#stream-utils">stream-utils</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#strint">strint</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#swing-utils">swing-utils</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#test-base64">test-base64</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#trace">trace</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#types">types</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#with-ns">with-ns</a>
<br />
</div><div style="margin-left: 1em;" class="toc-section">
<a href="#zip-filter">zip-filter</a>
<br />
</div>
</div>
</div>
<div id="content-tag"><h1 id="toc0">API Overview - <span id="header-project">clojure-contrib</span> <span id="header-version">v1.3</span> (<span id="header-status">in development</span>)</h1>
<br />
<div id="project-description">The user contributions library, clojure.contrib, is a collection
of namespaces each of which implements features that we believe may be useful to
a large part of the clojure community.
<br /><br />
This library was created by Rich Hickey but has been populated and is maintained by a
group of volunteers who are excited about the success of the Clojure language and
want to do our part to help it along. The current list of contributors is available
on the <a href="http://github.com/richhickey/clojure-contrib/">
clojure-contrib GitHub source page</a>.
<br /><br />
More contributions (and contributors) are welcome. If you wish to contribute, you will need
to sign a contributor agreement (which allows Clojure and clojure.contrib to proceed
without entanglements, see <a href="http://clojure.org/contributing">contributing</a>
for more info).
<br /><br />
The best way to start is to share a project you've written with the google group and gauge
the interest in adding it to contrib. (Publishing it in an open source form on google code,
github or some other easy-to-access place in the net will also help.) After general
discussion, Rich Hickey makes the final determination about what gets added to
clojure.contrib.
<br /><br />
Some parts of clojure.contrib may migrate into clojure.core if they prove to be so
generally useful that they justify being everywhere. (For example, condp started out
as an extension in contrib, but was moved to core by popular acclamation.)
<br /><br />
The exact role of clojure.contrib and the future of the Clojure environment (standard
libraries, dependency models, packaging systems, etc.)
is the subject of pretty much continuous discussion
in the clojure google group and in #clojure on freenode. Feel free to join that
discussion and help shape the ways Clojure is extended.
<br /><br />
Like Clojure itself, clojure.contrib is made available under the
<a href="http://opensource.org/licenses/eclipse-1.0.php">Eclipse Public License (EPL)</a>.
clojure.contrib is copyright 2008-2009 Rich Hickey and the various contributors.
<br /><br />
<h3>Important clojure-contrib resources</h3>
<ul>
<li>The official source code for clojure-contrib is on the
<a href="http://github.com/richhickey/clojure-contrib/">
clojure-contrib GitHub source page
</a>.
</li>
<li>Issues and other information for clojure-contrib are maintained in the
<a href="http://www.assembla.com/spaces/dashboard/index/clojure-contrib">
clojure-contrib Assembla space
</a>.
</li>
<li>This documentation is maintained in the gh-pages branch of clojure-contrib
on GitHub and is always available online
<a href="http://richhickey.github.com/clojure-contrib">
GitHub pages for clojure-contrib
</a>. If you wish to have a version for off-line use you can use the download
button on the
<a href="http://github.com/richhickey/clojure-contrib/tree/gh-pages">
gh-pages branch page at GitHub
</a>.
</li>
<li>Issues related to clojure-contrib and the various pieces of functionality
within it are discussed in the
<a href="http://groups.google.com/group/clojure">
Clojure Google group
</a>.
</li>
<li>Discussions among clojure-contrib developers take place in the
<a href="http://groups.google.com/group/clojure-dev">
Clojure Dev Google group
</a>.
</li>
</ul>
</div>
<br />
<div id="namespace-entry">
<br />
<hr />
<h2 id="accumulators">accumulators</h2>
<span id="author-line">by <span id="author-name">Konrad Hinsen</span><br /></span>
<a href="accumulators-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">A generic accumulator interface and implementations of various
accumulators.</pre>
Public variables and functions:
<span id="var-link"><a href="accumulators-api.html#clojure.contrib.accumulators/add-items" id="var-tag">add-items</a> </span><span id="var-link"><a href="accumulators-api.html#clojure.contrib.accumulators/empty-counter" id="var-tag">empty-counter</a> </span><span id="var-link"><a href="accumulators-api.html#clojure.contrib.accumulators/empty-counter-with-total" id="var-tag">empty-counter-with-total</a> </span><span id="var-link"><a href="accumulators-api.html#clojure.contrib.accumulators/empty-list" id="var-tag">empty-list</a> </span><span id="var-link"><a href="accumulators-api.html#clojure.contrib.accumulators/empty-map" id="var-tag">empty-map</a> </span><span id="var-link"><a href="accumulators-api.html#clojure.contrib.accumulators/empty-maximum" id="var-tag">empty-maximum</a> </span><span id="var-link"><a href="accumulators-api.html#clojure.contrib.accumulators/empty-mean-variance" id="var-tag">empty-mean-variance</a> </span><span id="var-link"><a href="accumulators-api.html#clojure.contrib.accumulators/empty-min-max" id="var-tag">empty-min-max</a> </span><span id="var-link"><a href="accumulators-api.html#clojure.contrib.accumulators/empty-minimum" id="var-tag">empty-minimum</a> </span><span id="var-link"><a href="accumulators-api.html#clojure.contrib.accumulators/empty-product" id="var-tag">empty-product</a> </span><span id="var-link"><a href="accumulators-api.html#clojure.contrib.accumulators/empty-queue" id="var-tag">empty-queue</a> </span><span id="var-link"><a href="accumulators-api.html#clojure.contrib.accumulators/empty-set" id="var-tag">empty-set</a> </span><span id="var-link"><a href="accumulators-api.html#clojure.contrib.accumulators/empty-string" id="var-tag">empty-string</a> </span><span id="var-link"><a href="accumulators-api.html#clojure.contrib.accumulators/empty-sum" id="var-tag">empty-sum</a> </span><span id="var-link"><a href="accumulators-api.html#clojure.contrib.accumulators/empty-tuple" id="var-tag">empty-tuple</a> </span><span id="var-link"><a href="accumulators-api.html#clojure.contrib.accumulators/empty-vector" id="var-tag">empty-vector</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="agent-utils">agent-utils</h2>
<span id="author-line">by <span id="author-name">Christophe Grande</span><br /></span>
<a href="agent-utils-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Miscellaneous agent utilities
(note to other contrib members: feel free to add to this lib)</pre>
Public variables and functions:
<span id="var-link"><a href="agent-utils-api.html#clojure.contrib.agent-utils/capture-and-send" id="var-tag">capture-and-send</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="base64">base64</h2>
<span id="author-line">by <span id="author-name">Stuart Sierra</span><br /></span>
<a href="base64-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Base-64 encoding and decoding.
This is mainly here as an example. It is much slower than the
Apache Commons Codec implementation or sun.misc.BASE64Encoder.</pre>
Public variables and functions:
<span id="var-link"><a href="base64-api.html#clojure.contrib.base64/decode" id="var-tag">decode</a> </span><span id="var-link"><a href="base64-api.html#clojure.contrib.base64/decode-str" id="var-tag">decode-str</a> </span><span id="var-link"><a href="base64-api.html#clojure.contrib.base64/encode" id="var-tag">encode</a> </span><span id="var-link"><a href="base64-api.html#clojure.contrib.base64/encode-str" id="var-tag">encode-str</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="classpath">classpath</h2>
<span id="author-line">by <span id="author-name">Stuart Sierra</span><br /></span>
<a href="classpath-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Utilities for dealing with the JVM's classpath</pre>
Public variables and functions:
<span id="var-link"><a href="classpath-api.html#clojure.contrib.classpath/classpath" id="var-tag">classpath</a> </span><span id="var-link"><a href="classpath-api.html#clojure.contrib.classpath/classpath-directories" id="var-tag">classpath-directories</a> </span><span id="var-link"><a href="classpath-api.html#clojure.contrib.classpath/classpath-jarfiles" id="var-tag">classpath-jarfiles</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="combinatorics">combinatorics</h2>
<span id="author-line">by <span id="author-name">Mark Engelberg</span><br /></span>
<a href="combinatorics-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Efficient, functional algorithms for generating lazy
sequences for common combinatorial functions. (See the source code
for a longer description.)</pre>
Public variables and functions:
<span id="var-link"><a href="combinatorics-api.html#clojure.contrib.combinatorics/cartesian-product" id="var-tag">cartesian-product</a> </span><span id="var-link"><a href="combinatorics-api.html#clojure.contrib.combinatorics/combinations" id="var-tag">combinations</a> </span><span id="var-link"><a href="combinatorics-api.html#clojure.contrib.combinatorics/lex-permutations" id="var-tag">lex-permutations</a> </span><span id="var-link"><a href="combinatorics-api.html#clojure.contrib.combinatorics/permutations" id="var-tag">permutations</a> </span><span id="var-link"><a href="combinatorics-api.html#clojure.contrib.combinatorics/selections" id="var-tag">selections</a> </span><span id="var-link"><a href="combinatorics-api.html#clojure.contrib.combinatorics/subsets" id="var-tag">subsets</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="command-line">command-line</h2>
<span id="author-line">by <span id="author-name">Chris Houser</span><br /></span>
<a href="command-line-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Process command-line arguments according to a given cmdspec</pre>
Public variables and functions:
<span id="var-link"><a href="command-line-api.html#clojure.contrib.command-line/with-command-line" id="var-tag">with-command-line</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="complex-numbers">complex-numbers</h2>
<span id="author-line">by <span id="author-name">Konrad Hinsen</span><br /></span>
<a href="complex-numbers-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Complex numbers
NOTE: This library is in evolution. Most math functions are
not implemented yet.</pre>
Public variables and functions:
<br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="cond">cond</h2>
<span id="author-line">by <span id="author-name">Stephen C. Gilardi</span><br /></span>
<a href="cond-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Extensions to the basic cond function.</pre>
Public variables and functions:
<span id="var-link"><a href="cond-api.html#clojure.contrib.cond/cond-let" id="var-tag">cond-let</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="condition">condition</h2>
<span id="author-line">by <span id="author-name">Stephen C. Gilardi</span><br /></span>
<a href="condition-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Flexible raising and handling of conditions:
Functions:
raise: raises a condition
handler-case: dispatches raised conditions to appropriate handlers
print-stack-trace: prints abbreviated or full condition stack traces
Data:
A condition is a map containing values for these keys:
- :type, a condition type specifier, typically a keyword
- :stack-trace, a stack trace to the site of the raise
- :message, a human-readable message (optional)
- :cause, a wrapped exception or condition (optional)
- other keys given as arguments to raise (optional)
Note: requires AOT compilation.
Based on an idea from Chouser:
<a href="http://groups.google.com/group/clojure/browse_frm/thread/da1285c538f22bb5">http://groups.google.com/group/clojure/browse_frm/thread/da1285c538f22bb5</a></pre>
Public variables and functions:
<span id="var-link"><a href="condition-api.html#clojure.contrib.condition/*full-stack-traces*" id="var-tag">*full-stack-traces*</a> </span><span id="var-link"><a href="condition-api.html#clojure.contrib.condition/handler-case" id="var-tag">handler-case</a> </span><span id="var-link"><a href="condition-api.html#clojure.contrib.condition/print-stack-trace" id="var-tag">print-stack-trace</a> </span><span id="var-link"><a href="condition-api.html#clojure.contrib.condition/raise" id="var-tag">raise</a> </span><br />
<span id="subspace"><br />Variables and functions in
<span id="name">condition.Condition</span>:
<span id="sub-var-link">
<a href="condition-api.html#clojure.contrib.condition.Condition/-init">-init</a>
</span><span id="sub-var-link">
<a href="condition-api.html#clojure.contrib.condition.Condition/-meta">-meta</a>
</span><span id="sub-var-link">
<a href="condition-api.html#clojure.contrib.condition.Condition/-post-init">-post-init</a>
</span>
<br />
</span>
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="core">core</h2>
<span id="author-line">by <span id="author-name">Laurent Petit (and others)</span><br /></span>
<a href="core-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Functions/macros variants of the ones that can be found in clojure.core
(note to other contrib members: feel free to add to this lib)</pre>
Public variables and functions:
<span id="var-link"><a href="core-api.html#clojure.contrib.core/-?>" id="var-tag">-?></a> </span><span id="var-link"><a href="core-api.html#clojure.contrib.core/-?>>" id="var-tag">-?>></a> </span><span id="var-link"><a href="core-api.html#clojure.contrib.core/.?." id="var-tag">.?.</a> </span><span id="var-link"><a href="core-api.html#clojure.contrib.core/dissoc-in" id="var-tag">dissoc-in</a> </span><span id="var-link"><a href="core-api.html#clojure.contrib.core/new-by-name" id="var-tag">new-by-name</a> </span><span id="var-link"><a href="core-api.html#clojure.contrib.core/seqable?" id="var-tag">seqable?</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="dataflow">dataflow</h2>
<span id="author-line">by <span id="author-name">Jeffrey Straszheim</span><br /></span>
<a href="dataflow-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">A library to support a dataflow model of state</pre>
Public variables and functions:
<span id="var-link"><a href="dataflow-api.html#clojure.contrib.dataflow/add-cell-watcher" id="var-tag">add-cell-watcher</a> </span><span id="var-link"><a href="dataflow-api.html#clojure.contrib.dataflow/add-cells" id="var-tag">add-cells</a> </span><span id="var-link"><a href="dataflow-api.html#clojure.contrib.dataflow/build-dataflow" id="var-tag">build-dataflow</a> </span><span id="var-link"><a href="dataflow-api.html#clojure.contrib.dataflow/build-source-cell" id="var-tag">build-source-cell</a> </span><span id="var-link"><a href="dataflow-api.html#clojure.contrib.dataflow/build-standard-cell" id="var-tag">build-standard-cell</a> </span><span id="var-link"><a href="dataflow-api.html#clojure.contrib.dataflow/build-validator-cell" id="var-tag">build-validator-cell</a> </span><span id="var-link"><a href="dataflow-api.html#clojure.contrib.dataflow/cell" id="var-tag">cell</a> </span><span id="var-link"><a href="dataflow-api.html#clojure.contrib.dataflow/display-cell" id="var-tag">display-cell</a> </span><span id="var-link"><a href="dataflow-api.html#clojure.contrib.dataflow/eval-cell" id="var-tag">eval-cell</a> </span><span id="var-link"><a href="dataflow-api.html#clojure.contrib.dataflow/get-cell" id="var-tag">get-cell</a> </span><span id="var-link"><a href="dataflow-api.html#clojure.contrib.dataflow/get-cells" id="var-tag">get-cells</a> </span><span id="var-link"><a href="dataflow-api.html#clojure.contrib.dataflow/get-old-value" id="var-tag">get-old-value</a> </span><span id="var-link"><a href="dataflow-api.html#clojure.contrib.dataflow/get-source-cells" id="var-tag">get-source-cells</a> </span><span id="var-link"><a href="dataflow-api.html#clojure.contrib.dataflow/get-value" id="var-tag">get-value</a> </span><span id="var-link"><a href="dataflow-api.html#clojure.contrib.dataflow/get-value-from-cell" id="var-tag">get-value-from-cell</a> </span><span id="var-link"><a href="dataflow-api.html#clojure.contrib.dataflow/get-values" id="var-tag">get-values</a> </span><span id="var-link"><a href="dataflow-api.html#clojure.contrib.dataflow/print-dataflow" id="var-tag">print-dataflow</a> </span><span id="var-link"><a href="dataflow-api.html#clojure.contrib.dataflow/remove-cells" id="var-tag">remove-cells</a> </span><span id="var-link"><a href="dataflow-api.html#clojure.contrib.dataflow/source-cell?" id="var-tag">source-cell?</a> </span><span id="var-link"><a href="dataflow-api.html#clojure.contrib.dataflow/update-values" id="var-tag">update-values</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="datalog">datalog</h2>
<span id="author-line">by <span id="author-name">Jeffrey Straszheim</span><br /></span>
<a href="datalog-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">A Clojure implementation of Datalog</pre>
Public variables and functions:
<span id="var-link"><a href="datalog-api.html#clojure.contrib.datalog/build-work-plan" id="var-tag">build-work-plan</a> </span><span id="var-link"><a href="datalog-api.html#clojure.contrib.datalog/run-work-plan" id="var-tag">run-work-plan</a> </span><br />
<span id="subspace"><br />Variables and functions in
<span id="name">datalog.database</span>:
<span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.database/add-index">add-index</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.database/add-relation">add-relation</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.database/add-tuple">add-tuple</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.database/add-tuples">add-tuples</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.database/any-match?">any-match?</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.database/database-counts">database-counts</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.database/database-merge">database-merge</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.database/database-merge-parallel">database-merge-parallel</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.database/datalog-relation">datalog-relation</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.database/ensure-relation">ensure-relation</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.database/get-relation">get-relation</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.database/make-database">make-database</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.database/merge-relations">merge-relations</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.database/remove-tuple">remove-tuple</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.database/replace-relation">replace-relation</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.database/select">select</a>
</span>
<br />
</span><span id="subspace"><br />Variables and functions in
<span id="name">datalog.literals</span>:
<span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.literals/build-atom">build-atom</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.literals/build-seed-bindings">build-seed-bindings</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.literals/delta-literal">delta-literal</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.literals/get-adorned-bindings">get-adorned-bindings</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.literals/get-base-predicate">get-base-predicate</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.literals/literal-magic?">literal-magic?</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.literals/magic-literal">magic-literal</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.literals/negated-literal">negated-literal</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.literals/negated?">negated?</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.literals/positive?">positive?</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.literals/project-literal">project-literal</a>
</span>
<br />
</span><span id="subspace"><br />Variables and functions in
<span id="name">datalog.magic</span>:
<span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.magic/adorn-query">adorn-query</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.magic/adorn-rules-set">adorn-rules-set</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.magic/build-partial-tuple">build-partial-tuple</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.magic/magic-transform">magic-transform</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.magic/seed-predicate-for-insertion">seed-predicate-for-insertion</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.magic/seed-relation">seed-relation</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.magic/seed-rule">seed-rule</a>
</span>
<br />
</span><span id="subspace"><br />Variables and functions in
<span id="name">datalog.rules</span>:
<span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.rules/<-"><-</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.rules/?-">?-</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.rules/all-predicates">all-predicates</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.rules/apply-rule">apply-rule</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.rules/compute-sip">compute-sip</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.rules/display-query">display-query</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.rules/display-rule">display-rule</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.rules/is-safe?">is-safe?</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.rules/make-rules-set">make-rules-set</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.rules/non-base-rules">non-base-rules</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.rules/predicate-map">predicate-map</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.rules/return-rule-data">return-rule-data</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.rules/rules-set">rules-set</a>
</span>
<br />
</span><span id="subspace"><br />Variables and functions in
<span id="name">datalog.softstrat</span>:
<span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.softstrat/build-soft-strat-work-plan">build-soft-strat-work-plan</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.softstrat/get-all-relations">get-all-relations</a>
</span>
<br />
</span><span id="subspace"><br />Variables and functions in
<span id="name">datalog.util</span>:
<span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.util/is-query-var?">is-query-var?</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.util/is-var?">is-var?</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.util/keys-to-vals">keys-to-vals</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.util/map-values">map-values</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.util/preduce">preduce</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.util/reverse-map">reverse-map</a>
</span><span id="sub-var-link">
<a href="datalog-api.html#clojure.contrib.datalog.util/trace-datalog">trace-datalog</a>
</span>
<br />
</span>
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="def">def</h2>
<span id="author-line">by <span id="author-name">Stephen C. Gilardi</span><br /></span>
<a href="def-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">def.clj provides variants of def that make including doc strings and
making private definitions more succinct.</pre>
Public variables and functions:
<span id="var-link"><a href="def-api.html#clojure.contrib.def/defalias" id="var-tag">defalias</a> </span><span id="var-link"><a href="def-api.html#clojure.contrib.def/defhinted" id="var-tag">defhinted</a> </span><span id="var-link"><a href="def-api.html#clojure.contrib.def/defmacro-" id="var-tag">defmacro-</a> </span><span id="var-link"><a href="def-api.html#clojure.contrib.def/defn-memo" id="var-tag">defn-memo</a> </span><span id="var-link"><a href="def-api.html#clojure.contrib.def/defnk" id="var-tag">defnk</a> </span><span id="var-link"><a href="def-api.html#clojure.contrib.def/defonce-" id="var-tag">defonce-</a> </span><span id="var-link"><a href="def-api.html#clojure.contrib.def/defstruct-" id="var-tag">defstruct-</a> </span><span id="var-link"><a href="def-api.html#clojure.contrib.def/defunbound" id="var-tag">defunbound</a> </span><span id="var-link"><a href="def-api.html#clojure.contrib.def/defunbound-" id="var-tag">defunbound-</a> </span><span id="var-link"><a href="def-api.html#clojure.contrib.def/defvar" id="var-tag">defvar</a> </span><span id="var-link"><a href="def-api.html#clojure.contrib.def/defvar-" id="var-tag">defvar-</a> </span><span id="var-link"><a href="def-api.html#clojure.contrib.def/name-with-attributes" id="var-tag">name-with-attributes</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="error-kit">error-kit</h2>
<span id="author-line">by <span id="author-name">Chris Houser</span><br /></span>
<a href="error-kit-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">EXPERIMENTAL
System for defining and using custom errors
Please contact Chouser if you have any suggestions for better names
or API adjustments.</pre>
Public variables and functions:
<span id="var-link"><a href="error-kit-api.html#clojure.contrib.error-kit/bind-continue" id="var-tag">bind-continue</a> </span><span id="var-link"><a href="error-kit-api.html#clojure.contrib.error-kit/deferror" id="var-tag">deferror</a> </span><span id="var-link"><a href="error-kit-api.html#clojure.contrib.error-kit/do-not-handle" id="var-tag">do-not-handle</a> </span><span id="var-link"><a href="error-kit-api.html#clojure.contrib.error-kit/error" id="var-tag">error</a> </span><span id="var-link"><a href="error-kit-api.html#clojure.contrib.error-kit/handle" id="var-tag">handle</a> </span><span id="var-link"><a href="error-kit-api.html#clojure.contrib.error-kit/raise" id="var-tag">raise</a> </span><span id="var-link"><a href="error-kit-api.html#clojure.contrib.error-kit/raise*" id="var-tag">raise*</a> </span><span id="var-link"><a href="error-kit-api.html#clojure.contrib.error-kit/throw-msg" id="var-tag">throw-msg</a> </span><span id="var-link"><a href="error-kit-api.html#clojure.contrib.error-kit/with-handler" id="var-tag">with-handler</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="except">except</h2>
<span id="author-line">by <span id="author-name">Stephen C. Gilardi</span><br /></span>
<a href="except-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Provides functions that make it easy to specify the class, cause, and
message when throwing an Exception or Error. The optional message is
formatted using clojure.core/format.</pre>
Public variables and functions:
<span id="var-link"><a href="except-api.html#clojure.contrib.except/throw-arg" id="var-tag">throw-arg</a> </span><span id="var-link"><a href="except-api.html#clojure.contrib.except/throw-if" id="var-tag">throw-if</a> </span><span id="var-link"><a href="except-api.html#clojure.contrib.except/throw-if-not" id="var-tag">throw-if-not</a> </span><span id="var-link"><a href="except-api.html#clojure.contrib.except/throwf" id="var-tag">throwf</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="fcase">fcase</h2>
<span id="author-line">by <span id="author-name">Stuart Sierra</span><br /></span>
<a href="fcase-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">This file defines a generic "case" macro called "fcase" which takes
the equality-testing function as an argument. It also defines a
traditional "case" macro that tests using "=" and variants that
test for regular expressions and class membership.
Note (December 23, 2008): This library has been supplanted by the
inclusion of "condp" in clojure.core as of Clojure SVN rev. 1180.</pre>
Public variables and functions:
<span id="var-link"><a href="fcase-api.html#clojure.contrib.fcase/case" id="var-tag">case</a> </span><span id="var-link"><a href="fcase-api.html#clojure.contrib.fcase/fcase" id="var-tag">fcase</a> </span><span id="var-link"><a href="fcase-api.html#clojure.contrib.fcase/in-case" id="var-tag">in-case</a> </span><span id="var-link"><a href="fcase-api.html#clojure.contrib.fcase/instance-case" id="var-tag">instance-case</a> </span><span id="var-link"><a href="fcase-api.html#clojure.contrib.fcase/re-case" id="var-tag">re-case</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="find-namespaces">find-namespaces</h2>
<span id="author-line">by <span id="author-name">Stuart Sierra</span><br /></span>
<a href="find-namespaces-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Search for ns declarations in dirs, JARs, or CLASSPATH</pre>
Public variables and functions:
<span id="var-link"><a href="find-namespaces-api.html#clojure.contrib.find-namespaces/clojure-source-file?" id="var-tag">clojure-source-file?</a> </span><span id="var-link"><a href="find-namespaces-api.html#clojure.contrib.find-namespaces/clojure-sources-in-jar" id="var-tag">clojure-sources-in-jar</a> </span><span id="var-link"><a href="find-namespaces-api.html#clojure.contrib.find-namespaces/comment?" id="var-tag">comment?</a> </span><span id="var-link"><a href="find-namespaces-api.html#clojure.contrib.find-namespaces/find-clojure-sources-in-dir" id="var-tag">find-clojure-sources-in-dir</a> </span><span id="var-link"><a href="find-namespaces-api.html#clojure.contrib.find-namespaces/find-namespaces-in-dir" id="var-tag">find-namespaces-in-dir</a> </span><span id="var-link"><a href="find-namespaces-api.html#clojure.contrib.find-namespaces/find-namespaces-in-jarfile" id="var-tag">find-namespaces-in-jarfile</a> </span><span id="var-link"><a href="find-namespaces-api.html#clojure.contrib.find-namespaces/find-namespaces-on-classpath" id="var-tag">find-namespaces-on-classpath</a> </span><span id="var-link"><a href="find-namespaces-api.html#clojure.contrib.find-namespaces/find-ns-decls-in-dir" id="var-tag">find-ns-decls-in-dir</a> </span><span id="var-link"><a href="find-namespaces-api.html#clojure.contrib.find-namespaces/find-ns-decls-in-jarfile" id="var-tag">find-ns-decls-in-jarfile</a> </span><span id="var-link"><a href="find-namespaces-api.html#clojure.contrib.find-namespaces/find-ns-decls-on-classpath" id="var-tag">find-ns-decls-on-classpath</a> </span><span id="var-link"><a href="find-namespaces-api.html#clojure.contrib.find-namespaces/ns-decl?" id="var-tag">ns-decl?</a> </span><span id="var-link"><a href="find-namespaces-api.html#clojure.contrib.find-namespaces/read-file-ns-decl" id="var-tag">read-file-ns-decl</a> </span><span id="var-link"><a href="find-namespaces-api.html#clojure.contrib.find-namespaces/read-ns-decl" id="var-tag">read-ns-decl</a> </span><span id="var-link"><a href="find-namespaces-api.html#clojure.contrib.find-namespaces/read-ns-decl-from-jarfile-entry" id="var-tag">read-ns-decl-from-jarfile-entry</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="fnmap">fnmap</h2>
<span id="author-line">by <span id="author-name">Stuart Sierra</span><br /></span>
<a href="fnmap-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Maps that dispatch get/assoc to user-defined functions.
Note: requires AOT-compilation</pre>
Public variables and functions:
<span id="var-link"><a href="fnmap-api.html#clojure.contrib.fnmap/fnmap" id="var-tag">fnmap</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="gen-html-docs">gen-html-docs</h2>
<span id="author-line">by <span id="author-name">Craig Andera</span><br /></span>
<a href="gen-html-docs-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Generates a single HTML page that contains the documentation for
one or more Clojure libraries.</pre>
Public variables and functions:
<span id="var-link"><a href="gen-html-docs-api.html#clojure.contrib.gen-html-docs/generate-documentation" id="var-tag">generate-documentation</a> </span><span id="var-link"><a href="gen-html-docs-api.html#clojure.contrib.gen-html-docs/generate-documentation-to-file" id="var-tag">generate-documentation-to-file</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="generic.arithmetic">generic.arithmetic</h2>
<span id="author-line">by <span id="author-name">Konrad Hinsen</span><br /></span>
<a href="generic.arithmetic-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Generic arithmetic interface
This library defines generic versions of + - * / as multimethods
that can be defined for any type. The minimal required
implementations for a type are binary + and * plus unary - and /.
Everything else is derived from these automatically. Explicit
binary definitions for - and / can be provided for
efficiency reasons.</pre>
Public variables and functions:
<span id="var-link"><a href="generic.arithmetic-api.html#clojure.contrib.generic.arithmetic/defmethod*" id="var-tag">defmethod*</a> </span><span id="var-link"><a href="generic.arithmetic-api.html#clojure.contrib.generic.arithmetic/qsym" id="var-tag">qsym</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="generic.collection">generic.collection</h2>
<span id="author-line">by <span id="author-name">Konrad Hinsen</span><br /></span>
<a href="generic.collection-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Generic arithmetic interface
This library defines generic versions of common
collection-related functions as multimethods that can be
defined for any type.</pre>
Public variables and functions:
<br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="generic.comparison">generic.comparison</h2>
<span id="author-line">by <span id="author-name">Konrad Hinsen</span><br /></span>
<a href="generic.comparison-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Generic comparison interface
This library defines generic versions of = < > <= >= zero?
as multimethods that can be defined for any type. Of the
greater/less-than relations, types must minimally implement >.</pre>
Public variables and functions:
<span id="var-link"><a href="generic.comparison-api.html#clojure.contrib.generic.comparison/max" id="var-tag">max</a> </span><span id="var-link"><a href="generic.comparison-api.html#clojure.contrib.generic.comparison/min" id="var-tag">min</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="generic.functor">generic.functor</h2>
<span id="author-line">by <span id="author-name">Konrad Hinsen</span><br /></span>
<a href="generic.functor-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Generic functor interface (fmap)</pre>
Public variables and functions:
<br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="generic.math-functions">generic.math-functions</h2>
<span id="author-line">by <span id="author-name">Konrad Hinsen</span><br /></span>
<a href="generic.math-functions-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Generic math function interface
This library defines generic versions of common mathematical
functions such as sqrt or sin as multimethods that can be
defined for any type.</pre>
Public variables and functions:
<span id="var-link"><a href="generic.math-functions-api.html#clojure.contrib.generic.math-functions/approx=" id="var-tag">approx=</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="graph">graph</h2>
<span id="author-line">by <span id="author-name">Jeffrey Straszheim</span><br /></span>
<a href="graph-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Basic graph theory algorithms</pre>
Public variables and functions:
<span id="var-link"><a href="graph-api.html#clojure.contrib.graph/add-loops" id="var-tag">add-loops</a> </span><span id="var-link"><a href="graph-api.html#clojure.contrib.graph/component-graph" id="var-tag">component-graph</a> </span><span id="var-link"><a href="graph-api.html#clojure.contrib.graph/dependency-list" id="var-tag">dependency-list</a> </span><span id="var-link"><a href="graph-api.html#clojure.contrib.graph/fixed-point" id="var-tag">fixed-point</a> </span><span id="var-link"><a href="graph-api.html#clojure.contrib.graph/get-neighbors" id="var-tag">get-neighbors</a> </span><span id="var-link"><a href="graph-api.html#clojure.contrib.graph/lazy-walk" id="var-tag">lazy-walk</a> </span><span id="var-link"><a href="graph-api.html#clojure.contrib.graph/post-ordered-nodes" id="var-tag">post-ordered-nodes</a> </span><span id="var-link"><a href="graph-api.html#clojure.contrib.graph/recursive-component?" id="var-tag">recursive-component?</a> </span><span id="var-link"><a href="graph-api.html#clojure.contrib.graph/remove-loops" id="var-tag">remove-loops</a> </span><span id="var-link"><a href="graph-api.html#clojure.contrib.graph/reverse-graph" id="var-tag">reverse-graph</a> </span><span id="var-link"><a href="graph-api.html#clojure.contrib.graph/scc" id="var-tag">scc</a> </span><span id="var-link"><a href="graph-api.html#clojure.contrib.graph/self-recursive-sets" id="var-tag">self-recursive-sets</a> </span><span id="var-link"><a href="graph-api.html#clojure.contrib.graph/stratification-list" id="var-tag">stratification-list</a> </span><span id="var-link"><a href="graph-api.html#clojure.contrib.graph/transitive-closure" id="var-tag">transitive-closure</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="greatest-least">greatest-least</h2>
<span id="author-line">by <span id="author-name">Vincent Foley</span><br /></span>
<a href="greatest-least-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Various functions for finding greatest and least values in a collection</pre>
Public variables and functions:
<span id="var-link"><a href="greatest-least-api.html#clojure.contrib.greatest-least/all-greatest" id="var-tag">all-greatest</a> </span><span id="var-link"><a href="greatest-least-api.html#clojure.contrib.greatest-least/all-greatest-by" id="var-tag">all-greatest-by</a> </span><span id="var-link"><a href="greatest-least-api.html#clojure.contrib.greatest-least/all-least" id="var-tag">all-least</a> </span><span id="var-link"><a href="greatest-least-api.html#clojure.contrib.greatest-least/all-least-by" id="var-tag">all-least-by</a> </span><span id="var-link"><a href="greatest-least-api.html#clojure.contrib.greatest-least/greatest" id="var-tag">greatest</a> </span><span id="var-link"><a href="greatest-least-api.html#clojure.contrib.greatest-least/greatest-by" id="var-tag">greatest-by</a> </span><span id="var-link"><a href="greatest-least-api.html#clojure.contrib.greatest-least/least" id="var-tag">least</a> </span><span id="var-link"><a href="greatest-least-api.html#clojure.contrib.greatest-least/least-by" id="var-tag">least-by</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="import-static">import-static</h2>
<span id="author-line">by <span id="author-name">Stuart Sierra</span><br /></span>
<a href="import-static-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Import static Java methods/fields into Clojure</pre>
Public variables and functions:
<span id="var-link"><a href="import-static-api.html#clojure.contrib.import-static/import-static" id="var-tag">import-static</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="jar">jar</h2>
<span id="author-line">by <span id="author-name">Stuart Sierra</span><br /></span>
<a href="jar-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Utilities for working with Java JAR files</pre>
Public variables and functions:
<span id="var-link"><a href="jar-api.html#clojure.contrib.jar/filenames-in-jar" id="var-tag">filenames-in-jar</a> </span><span id="var-link"><a href="jar-api.html#clojure.contrib.jar/jar-file?" id="var-tag">jar-file?</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="java-utils">java-utils</h2>
<span id="author-line">by <span id="author-name">Stuart Halloway, Stephen C. Gilardi, Shawn Hoover, Perry Trolard, Stuart Sierra</span><br /></span>
<a href="java-utils-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">A set of utilties for dealing with Java stuff like files and properties.
Design goals:
(1) Ease-of-use. These APIs should be convenient. Performance is secondary.
(2) Duck typing. I hate having to think about the difference between
a string that names a file, and a File. Ditto for a ton of other
wrapper classes in the Java world (URL, InternetAddress). With these
APIs you should be able to think about domain equivalence, not type
equivalence.
(3) No bossiness. I am not marking any of these functions as private
the docstrings will tell you the intended usage but do what works for you.
Feedback welcome!
If something in this module violates the principle of least surprise, please
let me (Stu) and the Clojure community know via the mailing list.
Contributors:
Stuart Halloway
Stephen C. Gilardi
Shawn Hoover
Perry Trolard
Stuart Sierra</pre>
Public variables and functions:
<span id="var-link"><a href="java-utils-api.html#clojure.contrib.java-utils/as-properties" id="var-tag">as-properties</a> </span><span id="var-link"><a href="java-utils-api.html#clojure.contrib.java-utils/get-system-property" id="var-tag">get-system-property</a> </span><span id="var-link"><a href="java-utils-api.html#clojure.contrib.java-utils/read-properties" id="var-tag">read-properties</a> </span><span id="var-link"><a href="java-utils-api.html#clojure.contrib.java-utils/set-system-properties" id="var-tag">set-system-properties</a> </span><span id="var-link"><a href="java-utils-api.html#clojure.contrib.java-utils/with-system-properties" id="var-tag">with-system-properties</a> </span><span id="var-link"><a href="java-utils-api.html#clojure.contrib.java-utils/write-properties" id="var-tag">write-properties</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="jmx">jmx</h2>
<span id="author-line">by <span id="author-name">Stuart Halloway</span><br /></span>
<a href="jmx-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">JMX support for Clojure
Requires post-Clojure 1.0 git edge for clojure.test, clojure.backtrace.
This is prerelease.
This API will change.
Send reports to stu@thinkrelevance.com.
Usage
(require '[clojure.contrib.jmx :as jmx])
What beans do I have?
(jmx/mbean-names "*:*")
-> #<HashSet [java.lang:type=MemoryPool,name=CMS Old Gen,
java.lang:type=Memory, ...]
What attributes does a bean have?
(jmx/attribute-names "java.lang:type=Memory")
-> (:Verbose :ObjectPendingFinalizationCount
:HeapMemoryUsage :NonHeapMemoryUsage)
What is the value of an attribute?
(jmx/read "java.lang:type=Memory" :ObjectPendingFinalizationCount)
-> 0
Can't I just have *all* the attributes in a Clojure map?
(jmx/mbean "java.lang:type=Memory")
-> {:NonHeapMemoryUsage
{:used 16674024, :max 138412032, :init 24317952, :committed 24317952},
:HeapMemoryUsage
{:used 18619064, :max 85393408, :init 0, :committed 83230720},
:ObjectPendingFinalizationCount 0,
:Verbose false}
Can I find and invoke an operation?
(jmx/operation-names "java.lang:type=Memory")
-> (:gc)
(jmx/invoke "java.lang:type=Memory" :gc)
-> nil
What about some other process? Just run *any* of the above code
inside a with-connection:
(jmx/with-connection {:host "localhost", :port 3000}
(jmx/mbean "java.lang:type=Memory"))
-> {:ObjectPendingFinalizationCount 0,
:HeapMemoryUsage ... etc.}
Can I serve my own beans? Sure, just drop a Clojure ref
into an instance of clojure.contrib.jmx.Bean, and the bean
will expose read-only attributes for every key/value pair
in the ref:
(jmx/register-mbean
(Bean.
(ref {:string-attribute "a-string"}))
"my.namespace:name=Value")</pre>
Public variables and functions:
<span id="var-link"><a href="jmx-api.html#clojure.contrib.jmx/*connection*" id="var-tag">*connection*</a> </span><span id="var-link"><a href="jmx-api.html#clojure.contrib.jmx/attribute-info" id="var-tag">attribute-info</a> </span><span id="var-link"><a href="jmx-api.html#clojure.contrib.jmx/attribute-names" id="var-tag">attribute-names</a> </span><span id="var-link"><a href="jmx-api.html#clojure.contrib.jmx/build-attribute-info" id="var-tag">build-attribute-info</a> </span><span id="var-link"><a href="jmx-api.html#clojure.contrib.jmx/guess-attribute-typename" id="var-tag">guess-attribute-typename</a> </span><span id="var-link"><a href="jmx-api.html#clojure.contrib.jmx/jmx-url" id="var-tag">jmx-url</a> </span><span id="var-link"><a href="jmx-api.html#clojure.contrib.jmx/map->attribute-infos" id="var-tag">map->attribute-infos</a> </span><span id="var-link"><a href="jmx-api.html#clojure.contrib.jmx/maybe-atomize" id="var-tag">maybe-atomize</a> </span><span id="var-link"><a href="jmx-api.html#clojure.contrib.jmx/maybe-keywordize" id="var-tag">maybe-keywordize</a> </span><span id="var-link"><a href="jmx-api.html#clojure.contrib.jmx/mbean" id="var-tag">mbean</a> </span><span id="var-link"><a href="jmx-api.html#clojure.contrib.jmx/mbean-names" id="var-tag">mbean-names</a> </span><span id="var-link"><a href="jmx-api.html#clojure.contrib.jmx/op-param-types" id="var-tag">op-param-types</a> </span><span id="var-link"><a href="jmx-api.html#clojure.contrib.jmx/operation" id="var-tag">operation</a> </span><span id="var-link"><a href="jmx-api.html#clojure.contrib.jmx/operation-names" id="var-tag">operation-names</a> </span><span id="var-link"><a href="jmx-api.html#clojure.contrib.jmx/operations" id="var-tag">operations</a> </span><span id="var-link"><a href="jmx-api.html#clojure.contrib.jmx/raw-read" id="var-tag">raw-read</a> </span><span id="var-link"><a href="jmx-api.html#clojure.contrib.jmx/read" id="var-tag">read</a> </span><span id="var-link"><a href="jmx-api.html#clojure.contrib.jmx/read-supported" id="var-tag">read-supported</a> </span><span id="var-link"><a href="jmx-api.html#clojure.contrib.jmx/readable?" id="var-tag">readable?</a> </span><span id="var-link"><a href="jmx-api.html#clojure.contrib.jmx/with-connection" id="var-tag">with-connection</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="json">json</h2>
<span id="author-line">by <span id="author-name">Stuart Sierra</span><br /></span>
<a href="json-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">JavaScript Object Notation (JSON) parser/writer.
See <a href="http://www.json.org/">http://www.json.org/</a>
To write JSON, use json-str, write-json, or write-json.
To read JSON, use read-json.</pre>
Public variables and functions:
<span id="var-link"><a href="json-api.html#clojure.contrib.json/json-str" id="var-tag">json-str</a> </span><span id="var-link"><a href="json-api.html#clojure.contrib.json/pprint-json" id="var-tag">pprint-json</a> </span><span id="var-link"><a href="json-api.html#clojure.contrib.json/print-json" id="var-tag">print-json</a> </span><span id="var-link"><a href="json-api.html#clojure.contrib.json/read-json" id="var-tag">read-json</a> </span><span id="var-link"><a href="json-api.html#clojure.contrib.json/read-json-from" id="var-tag">read-json-from</a> </span><span id="var-link"><a href="json-api.html#clojure.contrib.json/write-json" id="var-tag">write-json</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="lazy-seqs">lazy-seqs</h2>
<span id="author-line">by <span id="author-name">Stephen C. Gilardi</span><br /></span>
<a href="lazy-seqs-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">
==== Lazy sequences ====
primes - based on the "naive" implemention described in [1] plus a
small "wheel" which eliminates multiples of 2, 3, 5, and
7 from consideration by incrementing past them. Also inspired
by code from Christophe Grand in [2].
fibs - all the Fibonacci numbers
powers-of-2 - all the powers of 2
==== Lazy sequence functions ====
(partition-all, shuffle moved to clojure.core)
(rand-elt moved to clojure.core/rand-nth)
(rotations, rand-elt moved to seq_utils.clj)
(permutations and combinations moved to combinatorics.clj)
[1] <a href="http://www.cs.hmc.edu/~oneill/papers/Sieve-JFP.pdf">http://www.cs.hmc.edu/~oneill/papers/Sieve-JFP.pdf</a>
[2] <a href="http://clj-me.blogspot.com/2008/06/primes.html">http://clj-me.blogspot.com/2008/06/primes.html</a></pre>
Public variables and functions:
<span id="var-link"><a href="lazy-seqs-api.html#clojure.contrib.lazy-seqs/fibs" id="var-tag">fibs</a> </span><span id="var-link"><a href="lazy-seqs-api.html#clojure.contrib.lazy-seqs/powers-of-2" id="var-tag">powers-of-2</a> </span><span id="var-link"><a href="lazy-seqs-api.html#clojure.contrib.lazy-seqs/primes" id="var-tag">primes</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="lazy-xml">lazy-xml</h2>
<span id="author-line">by <span id="author-name">Chris Houser</span><br /></span>
<a href="lazy-xml-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Functions to parse xml lazily and emit back to text.</pre>
Public variables and functions:
<span id="var-link"><a href="lazy-xml-api.html#clojure.contrib.lazy-xml/parse-seq" id="var-tag">parse-seq</a> </span><span id="var-link"><a href="lazy-xml-api.html#clojure.contrib.lazy-xml/parse-trim" id="var-tag">parse-trim</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="logging">logging</h2>
<span id="author-line">by <span id="author-name">Alex Taggart, with contributions and suggestions by Chris Dean, Phil
Hagelberg, Richard Newman, and Timothy Pratley</span><br /></span>
<a href="logging-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Logging macros which delegate to a specific logging implementation. At
runtime a specific implementation is selected from, in order, Apache
commons-logging, slf4j, log4j, and finally java.util.logging.
Logging levels are specified by clojure keywords corresponding to the
values used in log4j and commons-logging:
:trace, :debug, :info, :warn, :error, :fatal
Logging occurs with the log macro, or the level-specific convenience macros,
which write either directly or via an agent. See log* for more details
regarding direct vs agent logging.
The log macros will not evaluate their 'message' unless the specific logging
level is in effect. Alternately, you can use the spy macro when you have code
that needs to be evaluated, and also want to output the code and its result to
the log.
Unless otherwise specified, the current namespace (as identified by *ns*) will
be used as the log-ns (similar to how the java class name is usually used).
Note: your log configuration should display the name that was passed to the
logging implementation, and not perform stack-inspection, otherwise you'll see
some ugly and unhelpful text in your logs.
Use the enabled? macro to write conditional code against the logging level
(beyond simply whether or not to call log, which is handled automatically).
You can redirect all java writes of System.out and System.err to the log
system by calling log-capture!. To bind *out* and *err* to the log system
invoke with-logs. In both cases a log-ns (e.g., "com.example.captured")
must be specified in order to namespace the output.
For those new to using a java logging library, the following is a very basic
configuration for log4j. Place it in a file called "log4j.properties"
and place that file (and the log4j JAR) on the classpath.
log4j.rootLogger=WARN, A1
log4j.logger.user=DEBUG
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d %-5p %c: %m%n
The above will print messages to the console for :debug or higher if one is
in the user namespace, and :warn or higher in all other namespaces.</pre>
Public variables and functions:
<span id="var-link"><a href="logging-api.html#clojure.contrib.logging/*force*" id="var-tag">*force*</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/*log-factory*" id="var-tag">*log-factory*</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/*logging-agent*" id="var-tag">*logging-agent*</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/*tx-agent-levels*" id="var-tag">*tx-agent-levels*</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/Log" id="var-tag">Log</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/LogFactory" id="var-tag">LogFactory</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/commons-logging" id="var-tag">commons-logging</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/debug" id="var-tag">debug</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/debugf" id="var-tag">debugf</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/enabled?" id="var-tag">enabled?</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/error" id="var-tag">error</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/errorf" id="var-tag">errorf</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/fatal" id="var-tag">fatal</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/fatalf" id="var-tag">fatalf</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/find-factory" id="var-tag">find-factory</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/impl-enabled?" id="var-tag">impl-enabled?</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/impl-get-log" id="var-tag">impl-get-log</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/impl-name" id="var-tag">impl-name</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/impl-write!" id="var-tag">impl-write!</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/info" id="var-tag">info</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/infof" id="var-tag">infof</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/java-util-logging" id="var-tag">java-util-logging</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/log" id="var-tag">log</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/log*" id="var-tag">log*</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/log-capture!" id="var-tag">log-capture!</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/log-stream" id="var-tag">log-stream</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/log-uncapture!" id="var-tag">log-uncapture!</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/log4j-logging" id="var-tag">log4j-logging</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/logf" id="var-tag">logf</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/logp" id="var-tag">logp</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/slf4j-logging" id="var-tag">slf4j-logging</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/spy" id="var-tag">spy</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/trace" id="var-tag">trace</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/tracef" id="var-tag">tracef</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/warn" id="var-tag">warn</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/warnf" id="var-tag">warnf</a> </span><span id="var-link"><a href="logging-api.html#clojure.contrib.logging/with-logs" id="var-tag">with-logs</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="macro-utils">macro-utils</h2>
<span id="author-line">by <span id="author-name">Konrad Hinsen</span><br /></span>
<a href="macro-utils-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Local macros and symbol macros
Local macros are defined by a macrolet form. They are usable only
inside its body. Symbol macros can be defined globally
(defsymbolmacro) or locally (symbol-macrolet). A symbol
macro defines a form that replaces a symbol during macro
expansion. Function arguments and symbols bound in let
forms are not subject to symbol macro expansion.
Local macros are most useful in the definition of the expansion
of another macro, they may be used anywhere. Global symbol
macros can be used only inside a with-symbol-macros form.</pre>
Public variables and functions:
<span id="var-link"><a href="macro-utils-api.html#clojure.contrib.macro-utils/defsymbolmacro" id="var-tag">defsymbolmacro</a> </span><span id="var-link"><a href="macro-utils-api.html#clojure.contrib.macro-utils/deftemplate" id="var-tag">deftemplate</a> </span><span id="var-link"><a href="macro-utils-api.html#clojure.contrib.macro-utils/macrolet" id="var-tag">macrolet</a> </span><span id="var-link"><a href="macro-utils-api.html#clojure.contrib.macro-utils/mexpand" id="var-tag">mexpand</a> </span><span id="var-link"><a href="macro-utils-api.html#clojure.contrib.macro-utils/mexpand-1" id="var-tag">mexpand-1</a> </span><span id="var-link"><a href="macro-utils-api.html#clojure.contrib.macro-utils/mexpand-all" id="var-tag">mexpand-all</a> </span><span id="var-link"><a href="macro-utils-api.html#clojure.contrib.macro-utils/symbol-macrolet" id="var-tag">symbol-macrolet</a> </span><span id="var-link"><a href="macro-utils-api.html#clojure.contrib.macro-utils/with-symbol-macros" id="var-tag">with-symbol-macros</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="macros">macros</h2>
<span id="author-line">by <span id="author-name">Konrad Hinsen</span><br /></span>
<a href="macros-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Various small macros</pre>
Public variables and functions:
<span id="var-link"><a href="macros-api.html#clojure.contrib.macros/const" id="var-tag">const</a> </span><span id="var-link"><a href="macros-api.html#clojure.contrib.macros/letfn-" id="var-tag">letfn-</a> </span><span id="var-link"><a href="macros-api.html#clojure.contrib.macros/with-direct-linking" id="var-tag">with-direct-linking</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="map-utils">map-utils</h2>
<span id="author-line">by <span id="author-name">Jason Wolfe, Chris Houser</span><br /></span>
<a href="map-utils-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Utilities for operating on Clojure maps.</pre>
Public variables and functions:
<span id="var-link"><a href="map-utils-api.html#clojure.contrib.map-utils/deep-merge-with" id="var-tag">deep-merge-with</a> </span><span id="var-link"><a href="map-utils-api.html#clojure.contrib.map-utils/lazy-get" id="var-tag">lazy-get</a> </span><span id="var-link"><a href="map-utils-api.html#clojure.contrib.map-utils/safe-get" id="var-tag">safe-get</a> </span><span id="var-link"><a href="map-utils-api.html#clojure.contrib.map-utils/safe-get-in" id="var-tag">safe-get-in</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="math">math</h2>
<span id="author-line">by <span id="author-name">Mark Engelberg</span><br /></span>
<a href="math-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Math functions that deal intelligently with the various
types in Clojure's numeric tower, as well as math functions
commonly found in Scheme implementations.
expt - (expt x y) is x to the yth power, returns an exact number
if the base is an exact number, and the power is an integer,
otherwise returns a double.
abs - (abs n) is the absolute value of n
gcd - (gcd m n) returns the greatest common divisor of m and n
lcm - (lcm m n) returns the least common multiple of m and n
The behavior of the next three functions on doubles is consistent
with the behavior of the corresponding functions
in Java's Math library, but on exact numbers, returns an integer.
floor - (floor n) returns the greatest integer less than or equal to n.
If n is an exact number, floor returns an integer,
otherwise a double.
ceil - (ceil n) returns the least integer greater than or equal to n.
If n is an exact number, ceil returns an integer,
otherwise a double.
round - (round n) rounds to the nearest integer.
round always returns an integer. round rounds up for values
exactly in between two integers.
sqrt - Implements the sqrt behavior I'm accustomed to from PLT Scheme,
specifically, if the input is an exact number, and is a square
of an exact number, the output will be exact. The downside
is that for the common case (inexact square root), some extra
computation is done to look for an exact square root first.
So if you need blazingly fast square root performance, and you
know you're just going to need a double result, you're better
off calling java's Math/sqrt, or alternatively, you could just
convert your input to a double before calling this sqrt function.
If Clojure ever gets complex numbers, then this function will
need to be updated (so negative inputs yield complex outputs).
exact-integer-sqrt - Implements a math function from the R6RS Scheme
standard. (exact-integer-sqrt k) where k is a non-negative integer,
returns [s r] where k = s^2+r and k < (s+1)^2. In other words, it
returns the floor of the square root and the </pre>
Public variables and functions:
<span id="var-link"><a href="math-api.html#clojure.contrib.math/abs" id="var-tag">abs</a> </span><span id="var-link"><a href="math-api.html#clojure.contrib.math/ceil" id="var-tag">ceil</a> </span><span id="var-link"><a href="math-api.html#clojure.contrib.math/exact-integer-sqrt" id="var-tag">exact-integer-sqrt</a> </span><span id="var-link"><a href="math-api.html#clojure.contrib.math/expt" id="var-tag">expt</a> </span><span id="var-link"><a href="math-api.html#clojure.contrib.math/floor" id="var-tag">floor</a> </span><span id="var-link"><a href="math-api.html#clojure.contrib.math/gcd" id="var-tag">gcd</a> </span><span id="var-link"><a href="math-api.html#clojure.contrib.math/lcm" id="var-tag">lcm</a> </span><span id="var-link"><a href="math-api.html#clojure.contrib.math/round" id="var-tag">round</a> </span><span id="var-link"><a href="math-api.html#clojure.contrib.math/sqrt" id="var-tag">sqrt</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="miglayout">miglayout</h2>
<span id="author-line">by <span id="author-name">Stephen C. Gilardi</span><br /></span>
<a href="miglayout-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Clojure support for the MiGLayout layout manager
<a href="http://www.miglayout.com/">http://www.miglayout.com/</a>
Example:
(use '[clojure.contrib.miglayout.test :as mlt :only ()])
(dotimes [i 5] (mlt/run-test i))</pre>
Public variables and functions:
<span id="var-link"><a href="miglayout-api.html#clojure.contrib.miglayout/components" id="var-tag">components</a> </span><span id="var-link"><a href="miglayout-api.html#clojure.contrib.miglayout/miglayout" id="var-tag">miglayout</a> </span><br />
<span id="subspace"><br />Variables and functions in
<span id="name">miglayout.internal</span>:
<span id="sub-var-link">
<a href="miglayout-api.html#clojure.contrib.miglayout.internal/add-components">add-components</a>
</span><span id="sub-var-link">
<a href="miglayout-api.html#clojure.contrib.miglayout.internal/component?">component?</a>
</span><span id="sub-var-link">
<a href="miglayout-api.html#clojure.contrib.miglayout.internal/constraint?">constraint?</a>
</span><span id="sub-var-link">
<a href="miglayout-api.html#clojure.contrib.miglayout.internal/do-layout">do-layout</a>
</span><span id="sub-var-link">
<a href="miglayout-api.html#clojure.contrib.miglayout.internal/format-constraint">format-constraint</a>
</span><span id="sub-var-link">
<a href="miglayout-api.html#clojure.contrib.miglayout.internal/format-constraints">format-constraints</a>
</span><span id="sub-var-link">
<a href="miglayout-api.html#clojure.contrib.miglayout.internal/get-components">get-components</a>
</span><span id="sub-var-link">
<a href="miglayout-api.html#clojure.contrib.miglayout.internal/parse-component-constraint">parse-component-constraint</a>
</span><span id="sub-var-link">
<a href="miglayout-api.html#clojure.contrib.miglayout.internal/parse-item-constraints">parse-item-constraints</a>
</span>
<br />
</span>
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="mmap">mmap</h2>
<span id="author-line">by <span id="author-name">Chris Houser</span><br /></span>
<a href="mmap-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Functions for memory-mapping files, plus some functions that use a
mmaped file for "normal" activies -- slurp, load-file, etc.</pre>
Public variables and functions:
<span id="var-link"><a href="mmap-api.html#clojure.contrib.mmap/buffer-stream" id="var-tag">buffer-stream</a> </span><span id="var-link"><a href="mmap-api.html#clojure.contrib.mmap/mmap" id="var-tag">mmap</a> </span><span id="var-link"><a href="mmap-api.html#clojure.contrib.mmap/slurp" id="var-tag">slurp</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="mock">mock</h2>
<a href="mock-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr"></pre>
Public variables and functions:
<span id="var-link"><a href="mock-api.html#clojure.contrib.mock/calls" id="var-tag">calls</a> </span><span id="var-link"><a href="mock-api.html#clojure.contrib.mock/expect" id="var-tag">expect</a> </span><span id="var-link"><a href="mock-api.html#clojure.contrib.mock/has-args" id="var-tag">has-args</a> </span><span id="var-link"><a href="mock-api.html#clojure.contrib.mock/has-matching-signature?" id="var-tag">has-matching-signature?</a> </span><span id="var-link"><a href="mock-api.html#clojure.contrib.mock/make-arg-checker" id="var-tag">make-arg-checker</a> </span><span id="var-link"><a href="mock-api.html#clojure.contrib.mock/make-count-checker" id="var-tag">make-count-checker</a> </span><span id="var-link"><a href="mock-api.html#clojure.contrib.mock/make-mock" id="var-tag">make-mock</a> </span><span id="var-link"><a href="mock-api.html#clojure.contrib.mock/returns" id="var-tag">returns</a> </span><span id="var-link"><a href="mock-api.html#clojure.contrib.mock/times" id="var-tag">times</a> </span><span id="var-link"><a href="mock-api.html#clojure.contrib.mock/validate-counts" id="var-tag">validate-counts</a> </span><br />
<span id="subspace"><br />Variables and functions in
<span id="name">mock.test-adapter</span>:
<span id="sub-var-link">
<a href="mock-api.html#clojure.contrib.mock.test-adapter/calls">calls</a>
</span><span id="sub-var-link">
<a href="mock-api.html#clojure.contrib.mock.test-adapter/has-args">has-args</a>
</span><span id="sub-var-link">
<a href="mock-api.html#clojure.contrib.mock.test-adapter/has-matching-signature?">has-matching-signature?</a>
</span><span id="sub-var-link">
<a href="mock-api.html#clojure.contrib.mock.test-adapter/make-arg-checker">make-arg-checker</a>
</span><span id="sub-var-link">
<a href="mock-api.html#clojure.contrib.mock.test-adapter/make-count-checker">make-count-checker</a>
</span><span id="sub-var-link">
<a href="mock-api.html#clojure.contrib.mock.test-adapter/make-mock">make-mock</a>
</span><span id="sub-var-link">
<a href="mock-api.html#clojure.contrib.mock.test-adapter/report-problem">report-problem</a>
</span><span id="sub-var-link">
<a href="mock-api.html#clojure.contrib.mock.test-adapter/returns">returns</a>
</span><span id="sub-var-link">
<a href="mock-api.html#clojure.contrib.mock.test-adapter/times">times</a>
</span><span id="sub-var-link">
<a href="mock-api.html#clojure.contrib.mock.test-adapter/validate-counts">validate-counts</a>
</span>
<br />
</span>
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="monadic-io-streams">monadic-io-streams</h2>
<span id="author-line">by <span id="author-name">Konrad Hinsen</span><br /></span>
<a href="monadic-io-streams-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Monadic I/O with Java input/output streams
Defines monadic I/O statements to be used in a state monad
with an input or output stream as the state. The macro
monadic-io creates a stream, runs a monadic I/O statement
on it, and closes the stream. This structure permits the
definition of purely functional compound I/O statements
which are applied to streams that can never escape from the
monadic statement sequence.</pre>
Public variables and functions:
<span id="var-link"><a href="monadic-io-streams-api.html#clojure.contrib.monadic-io-streams/flush" id="var-tag">flush</a> </span><span id="var-link"><a href="monadic-io-streams-api.html#clojure.contrib.monadic-io-streams/print" id="var-tag">print</a> </span><span id="var-link"><a href="monadic-io-streams-api.html#clojure.contrib.monadic-io-streams/println" id="var-tag">println</a> </span><span id="var-link"><a href="monadic-io-streams-api.html#clojure.contrib.monadic-io-streams/read-char" id="var-tag">read-char</a> </span><span id="var-link"><a href="monadic-io-streams-api.html#clojure.contrib.monadic-io-streams/read-line" id="var-tag">read-line</a> </span><span id="var-link"><a href="monadic-io-streams-api.html#clojure.contrib.monadic-io-streams/read-lines" id="var-tag">read-lines</a> </span><span id="var-link"><a href="monadic-io-streams-api.html#clojure.contrib.monadic-io-streams/skip-chars" id="var-tag">skip-chars</a> </span><span id="var-link"><a href="monadic-io-streams-api.html#clojure.contrib.monadic-io-streams/with-io-streams" id="var-tag">with-io-streams</a> </span><span id="var-link"><a href="monadic-io-streams-api.html#clojure.contrib.monadic-io-streams/with-reader" id="var-tag">with-reader</a> </span><span id="var-link"><a href="monadic-io-streams-api.html#clojure.contrib.monadic-io-streams/with-writer" id="var-tag">with-writer</a> </span><span id="var-link"><a href="monadic-io-streams-api.html#clojure.contrib.monadic-io-streams/write" id="var-tag">write</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="monads">monads</h2>
<span id="author-line">by <span id="author-name">Konrad Hinsen</span><br /></span>
<a href="monads-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">This library contains the most commonly used monads as well
as macros for defining and using monads and useful monadic
functions.</pre>
<span id="see-also">See also:
<span id="see-also-link">
<a href="http://onclojure.com/2009/03/05/a-monad-tutorial-for-clojure-programmers-part-1/">Monad tutorial part 1</a>
</span><span id="see-also-link">
<a href="http://onclojure.com/2009/03/06/a-monad-tutorial-for-clojure-programmers-part-2/">Monad tutorial part 2</a>
</span><span id="see-also-link">
<a href="http://onclojure.com/2009/03/23/a-monad-tutorial-for-clojure-programmers-part-3/">Monad tutorial part 3</a>
</span><span id="see-also-link">
<a href="http://onclojure.com/2009/04/24/a-monad-tutorial-for-clojure-programmers-part-4/">Monad tutorial part 4</a>
</span><span id="see-also-link">
<a href="http://intensivesystems.net/tutorials/monads_101.html">Monads in Clojure part 1</a>
</span><span id="see-also-link">
<a href="http://intensivesystems.net/tutorials/monads_201.html">Monads in Clojure part 2</a>
</span><br />
</span>
Public variables and functions:
<span id="var-link"><a href="monads-api.html#clojure.contrib.monads/call-cc" id="var-tag">call-cc</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/cont-m" id="var-tag">cont-m</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/defmonad" id="var-tag">defmonad</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/defmonadfn" id="var-tag">defmonadfn</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/domonad" id="var-tag">domonad</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/fetch-state" id="var-tag">fetch-state</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/fetch-val" id="var-tag">fetch-val</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/identity-m" id="var-tag">identity-m</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/m-chain" id="var-tag">m-chain</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/m-fmap" id="var-tag">m-fmap</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/m-join" id="var-tag">m-join</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/m-lift" id="var-tag">m-lift</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/m-map" id="var-tag">m-map</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/m-reduce" id="var-tag">m-reduce</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/m-seq" id="var-tag">m-seq</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/m-until" id="var-tag">m-until</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/m-when" id="var-tag">m-when</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/m-when-not" id="var-tag">m-when-not</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/maybe-m" id="var-tag">maybe-m</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/maybe-t" id="var-tag">maybe-t</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/monad" id="var-tag">monad</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/monad-transformer" id="var-tag">monad-transformer</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/run-cont" id="var-tag">run-cont</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/sequence-m" id="var-tag">sequence-m</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/sequence-t" id="var-tag">sequence-t</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/set-m" id="var-tag">set-m</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/set-state" id="var-tag">set-state</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/set-val" id="var-tag">set-val</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/state-m" id="var-tag">state-m</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/state-m-until" id="var-tag">state-m-until</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/state-t" id="var-tag">state-t</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/update-state" id="var-tag">update-state</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/update-val" id="var-tag">update-val</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/with-monad" id="var-tag">with-monad</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/with-state-field" id="var-tag">with-state-field</a> </span><span id="var-link"><a href="monads-api.html#clojure.contrib.monads/writer-m" id="var-tag">writer-m</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="ns-utils">ns-utils</h2>
<span id="author-line">by <span id="author-name">Stephen C. Gilardi</span><br /></span>
<a href="ns-utils-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Namespace utilities</pre>
Public variables and functions:
<span id="var-link"><a href="ns-utils-api.html#clojure.contrib.ns-utils/dir" id="var-tag">dir</a> </span><span id="var-link"><a href="ns-utils-api.html#clojure.contrib.ns-utils/docs" id="var-tag">docs</a> </span><span id="var-link"><a href="ns-utils-api.html#clojure.contrib.ns-utils/get-ns" id="var-tag">get-ns</a> </span><span id="var-link"><a href="ns-utils-api.html#clojure.contrib.ns-utils/immigrate" id="var-tag">immigrate</a> </span><span id="var-link"><a href="ns-utils-api.html#clojure.contrib.ns-utils/ns-vars" id="var-tag">ns-vars</a> </span><span id="var-link"><a href="ns-utils-api.html#clojure.contrib.ns-utils/print-dir" id="var-tag">print-dir</a> </span><span id="var-link"><a href="ns-utils-api.html#clojure.contrib.ns-utils/print-docs" id="var-tag">print-docs</a> </span><span id="var-link"><a href="ns-utils-api.html#clojure.contrib.ns-utils/vars" id="var-tag">vars</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="priority-map">priority-map</h2>
<a href="priority-map-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr"></pre>
Public variables and functions:
<span id="var-link"><a href="priority-map-api.html#clojure.contrib.priority-map/priority-map" id="var-tag">priority-map</a> </span><span id="var-link"><a href="priority-map-api.html#clojure.contrib.priority-map/priority-map-by" id="var-tag">priority-map-by</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="probabilities.finite-distributions">probabilities.finite-distributions</h2>
<span id="author-line">by <span id="author-name">Konrad Hinsen</span><br /></span>
<a href="probabilities.finite-distributions-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Finite probability distributions
This library defines a monad for combining finite probability
distributions.</pre>
Public variables and functions:
<span id="var-link"><a href="probabilities.finite-distributions-api.html#clojure.contrib.probabilities.finite-distributions/certainly" id="var-tag">certainly</a> </span><span id="var-link"><a href="probabilities.finite-distributions-api.html#clojure.contrib.probabilities.finite-distributions/choose" id="var-tag">choose</a> </span><span id="var-link"><a href="probabilities.finite-distributions-api.html#clojure.contrib.probabilities.finite-distributions/cond-dist-m" id="var-tag">cond-dist-m</a> </span><span id="var-link"><a href="probabilities.finite-distributions-api.html#clojure.contrib.probabilities.finite-distributions/cond-prob" id="var-tag">cond-prob</a> </span><span id="var-link"><a href="probabilities.finite-distributions-api.html#clojure.contrib.probabilities.finite-distributions/dist-m" id="var-tag">dist-m</a> </span><span id="var-link"><a href="probabilities.finite-distributions-api.html#clojure.contrib.probabilities.finite-distributions/join-with" id="var-tag">join-with</a> </span><span id="var-link"><a href="probabilities.finite-distributions-api.html#clojure.contrib.probabilities.finite-distributions/make-distribution" id="var-tag">make-distribution</a> </span><span id="var-link"><a href="probabilities.finite-distributions-api.html#clojure.contrib.probabilities.finite-distributions/normalize" id="var-tag">normalize</a> </span><span id="var-link"><a href="probabilities.finite-distributions-api.html#clojure.contrib.probabilities.finite-distributions/prob" id="var-tag">prob</a> </span><span id="var-link"><a href="probabilities.finite-distributions-api.html#clojure.contrib.probabilities.finite-distributions/uniform" id="var-tag">uniform</a> </span><span id="var-link"><a href="probabilities.finite-distributions-api.html#clojure.contrib.probabilities.finite-distributions/zipf" id="var-tag">zipf</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="probabilities.monte-carlo">probabilities.monte-carlo</h2>
<span id="author-line">by <span id="author-name">Konrad Hinsen</span><br /></span>
<a href="probabilities.monte-carlo-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Monte-Carlo method support
Monte-Carlo methods transform an input random number stream
(usually having a continuous uniform distribution in the
interval [0, 1)) into a random number stream whose distribution
satisfies certain conditions (usually the expectation value
is equal to some desired quantity). They are thus
transformations from one probability distribution to another one.
This library represents a Monte-Carlo method by a function that
takes as input the state of a random number stream with
uniform distribution (see
clojure.contrib.probabilities.random-numbers) and returns a
vector containing one sample value of the desired output
distribution and the final state of the input random number
stream. Such functions are state monad values and can be
composed using operations defined in clojure.contrib.monads.</pre>
Public variables and functions:
<span id="var-link"><a href="probabilities.monte-carlo-api.html#clojure.contrib.probabilities.monte-carlo/discrete" id="var-tag">discrete</a> </span><span id="var-link"><a href="probabilities.monte-carlo-api.html#clojure.contrib.probabilities.monte-carlo/exponential" id="var-tag">exponential</a> </span><span id="var-link"><a href="probabilities.monte-carlo-api.html#clojure.contrib.probabilities.monte-carlo/lognormal" id="var-tag">lognormal</a> </span><span id="var-link"><a href="probabilities.monte-carlo-api.html#clojure.contrib.probabilities.monte-carlo/n-sphere" id="var-tag">n-sphere</a> </span><span id="var-link"><a href="probabilities.monte-carlo-api.html#clojure.contrib.probabilities.monte-carlo/normal" id="var-tag">normal</a> </span><span id="var-link"><a href="probabilities.monte-carlo-api.html#clojure.contrib.probabilities.monte-carlo/normal-box-muller" id="var-tag">normal-box-muller</a> </span><span id="var-link"><a href="probabilities.monte-carlo-api.html#clojure.contrib.probabilities.monte-carlo/random-stream" id="var-tag">random-stream</a> </span><span id="var-link"><a href="probabilities.monte-carlo-api.html#clojure.contrib.probabilities.monte-carlo/reject" id="var-tag">reject</a> </span><span id="var-link"><a href="probabilities.monte-carlo-api.html#clojure.contrib.probabilities.monte-carlo/sample" id="var-tag">sample</a> </span><span id="var-link"><a href="probabilities.monte-carlo-api.html#clojure.contrib.probabilities.monte-carlo/sample-mean" id="var-tag">sample-mean</a> </span><span id="var-link"><a href="probabilities.monte-carlo-api.html#clojure.contrib.probabilities.monte-carlo/sample-mean-variance" id="var-tag">sample-mean-variance</a> </span><span id="var-link"><a href="probabilities.monte-carlo-api.html#clojure.contrib.probabilities.monte-carlo/sample-reduce" id="var-tag">sample-reduce</a> </span><span id="var-link"><a href="probabilities.monte-carlo-api.html#clojure.contrib.probabilities.monte-carlo/sample-sum" id="var-tag">sample-sum</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="probabilities.random-numbers">probabilities.random-numbers</h2>
<span id="author-line">by <span id="author-name">Konrad Hinsen</span><br /></span>
<a href="probabilities.random-numbers-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Random number streams
This library provides random number generators with a common
stream interface. They all produce pseudo-random numbers that are
uniformly distributed in the interval [0, 1), i.e. 0 is a
possible value but 1 isn't. For transformations to other
distributions, see clojure.contrib.probabilities.monte-carlo.
At the moment, the only generator provided is a rather simple
linear congruential generator.</pre>
Public variables and functions:
<span id="var-link"><a href="probabilities.random-numbers-api.html#clojure.contrib.probabilities.random-numbers/lcg" id="var-tag">lcg</a> </span><span id="var-link"><a href="probabilities.random-numbers-api.html#clojure.contrib.probabilities.random-numbers/rand-stream" id="var-tag">rand-stream</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="profile">profile</h2>
<span id="author-line">by <span id="author-name">Stuart Sierra</span><br /></span>
<a href="profile-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Simple code profiling & timing measurement.
Wrap any section of code in the prof macro, giving it a name, like this:
(defn my-function [x y]
(let [sum (prof :addition (+ x y))
product (prof :multiplication (* x y))]
[sum product]))
The run your code in the profile macro, like this:
(profile (dotimes [i 10000] (my-function 3 4)))
Which prints a report for each named section of code:
Name mean min max count sum
addition 265 0 37000 10000 2655000
multiplication 274 0 53000 10000 2747000
Times are measured in nanoseconds, to the maximum precision available
under the JVM. See the function documentation for more details.</pre>
Public variables and functions:
<span id="var-link"><a href="profile-api.html#clojure.contrib.profile/*enable-profiling*" id="var-tag">*enable-profiling*</a> </span><span id="var-link"><a href="profile-api.html#clojure.contrib.profile/print-summary" id="var-tag">print-summary</a> </span><span id="var-link"><a href="profile-api.html#clojure.contrib.profile/prof" id="var-tag">prof</a> </span><span id="var-link"><a href="profile-api.html#clojure.contrib.profile/profile" id="var-tag">profile</a> </span><span id="var-link"><a href="profile-api.html#clojure.contrib.profile/summarize" id="var-tag">summarize</a> </span><span id="var-link"><a href="profile-api.html#clojure.contrib.profile/with-profile-data" id="var-tag">with-profile-data</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="prxml">prxml</h2>
<span id="author-line">by <span id="author-name">Stuart Sierra</span><br /></span>
<a href="prxml-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Compact syntax for generating XML. See the documentation of "prxml"
for details.</pre>
Public variables and functions:
<span id="var-link"><a href="prxml-api.html#clojure.contrib.prxml/*html-compatible*" id="var-tag">*html-compatible*</a> </span><span id="var-link"><a href="prxml-api.html#clojure.contrib.prxml/*prxml-indent*" id="var-tag">*prxml-indent*</a> </span><span id="var-link"><a href="prxml-api.html#clojure.contrib.prxml/prxml" id="var-tag">prxml</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="reflect">reflect</h2>
<a href="reflect-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr"></pre>
Public variables and functions:
<span id="var-link"><a href="reflect-api.html#clojure.contrib.reflect/call-method" id="var-tag">call-method</a> </span><span id="var-link"><a href="reflect-api.html#clojure.contrib.reflect/get-field" id="var-tag">get-field</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="repl-ln">repl-ln</h2>
<span id="author-line">by <span id="author-name">Stephen C. Gilardi</span><br /></span>
<a href="repl-ln-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">A repl with that provides support for lines and line numbers in the
input stream.</pre>
Public variables and functions:
<span id="var-link"><a href="repl-ln-api.html#clojure.contrib.repl-ln/print-repl-info" id="var-tag">print-repl-info</a> </span><span id="var-link"><a href="repl-ln-api.html#clojure.contrib.repl-ln/repl" id="var-tag">repl</a> </span><span id="var-link"><a href="repl-ln-api.html#clojure.contrib.repl-ln/repl-info" id="var-tag">repl-info</a> </span><span id="var-link"><a href="repl-ln-api.html#clojure.contrib.repl-ln/repl-prompt" id="var-tag">repl-prompt</a> </span><span id="var-link"><a href="repl-ln-api.html#clojure.contrib.repl-ln/set-repl-name" id="var-tag">set-repl-name</a> </span><span id="var-link"><a href="repl-ln-api.html#clojure.contrib.repl-ln/set-repl-prompt" id="var-tag">set-repl-prompt</a> </span><span id="var-link"><a href="repl-ln-api.html#clojure.contrib.repl-ln/stream-repl" id="var-tag">stream-repl</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="repl-utils">repl-utils</h2>
<span id="author-line">by <span id="author-name">Chris Houser, Christophe Grand, Stephen Gilardi, Michel Salim</span><br /></span>
<a href="repl-utils-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Utilities meant to be used interactively at the REPL</pre>
Public variables and functions:
<span id="var-link"><a href="repl-utils-api.html#clojure.contrib.repl-utils/*local-javadocs*" id="var-tag">*local-javadocs*</a> </span><span id="var-link"><a href="repl-utils-api.html#clojure.contrib.repl-utils/*remote-javadocs*" id="var-tag">*remote-javadocs*</a> </span><span id="var-link"><a href="repl-utils-api.html#clojure.contrib.repl-utils/add-break-thread!" id="var-tag">add-break-thread!</a> </span><span id="var-link"><a href="repl-utils-api.html#clojure.contrib.repl-utils/add-local-javadoc" id="var-tag">add-local-javadoc</a> </span><span id="var-link"><a href="repl-utils-api.html#clojure.contrib.repl-utils/add-remote-javadoc" id="var-tag">add-remote-javadoc</a> </span><span id="var-link"><a href="repl-utils-api.html#clojure.contrib.repl-utils/break-threads" id="var-tag">break-threads</a> </span><span id="var-link"><a href="repl-utils-api.html#clojure.contrib.repl-utils/expression-info" id="var-tag">expression-info</a> </span><span id="var-link"><a href="repl-utils-api.html#clojure.contrib.repl-utils/find-javadoc-url" id="var-tag">find-javadoc-url</a> </span><span id="var-link"><a href="repl-utils-api.html#clojure.contrib.repl-utils/javadoc" id="var-tag">javadoc</a> </span><span id="var-link"><a href="repl-utils-api.html#clojure.contrib.repl-utils/run" id="var-tag">run</a> </span><span id="var-link"><a href="repl-utils-api.html#clojure.contrib.repl-utils/run*" id="var-tag">run*</a> </span><span id="var-link"><a href="repl-utils-api.html#clojure.contrib.repl-utils/show" id="var-tag">show</a> </span><span id="var-link"><a href="repl-utils-api.html#clojure.contrib.repl-utils/start-handling-break" id="var-tag">start-handling-break</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="seq">seq</h2>
<span id="author-line">by <span id="author-name">Stuart Sierra (and others)</span><br /></span>
<a href="seq-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Sequence utilities for Clojure</pre>
Public variables and functions:
<span id="var-link"><a href="seq-api.html#clojure.contrib.seq/fill-queue" id="var-tag">fill-queue</a> </span><span id="var-link"><a href="seq-api.html#clojure.contrib.seq/find-first" id="var-tag">find-first</a> </span><span id="var-link"><a href="seq-api.html#clojure.contrib.seq/indexed" id="var-tag">indexed</a> </span><span id="var-link"><a href="seq-api.html#clojure.contrib.seq/positions" id="var-tag">positions</a> </span><span id="var-link"><a href="seq-api.html#clojure.contrib.seq/rec-cat" id="var-tag">rec-cat</a> </span><span id="var-link"><a href="seq-api.html#clojure.contrib.seq/rec-seq" id="var-tag">rec-seq</a> </span><span id="var-link"><a href="seq-api.html#clojure.contrib.seq/rotations" id="var-tag">rotations</a> </span><span id="var-link"><a href="seq-api.html#clojure.contrib.seq/separate" id="var-tag">separate</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="server-socket">server-socket</h2>
<span id="author-line">by <span id="author-name">Craig McDaniel</span><br /></span>
<a href="server-socket-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Server socket library - includes REPL on socket</pre>
Public variables and functions:
<span id="var-link"><a href="server-socket-api.html#clojure.contrib.server-socket/create-repl-server" id="var-tag">create-repl-server</a> </span><span id="var-link"><a href="server-socket-api.html#clojure.contrib.server-socket/create-server" id="var-tag">create-server</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="set">set</h2>
<span id="author-line">by <span id="author-name">Jason Wolfe</span><br /></span>
<a href="set-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Clojure functions for operating on sets (supplemental to clojure.set)</pre>
Public variables and functions:
<span id="var-link"><a href="set-api.html#clojure.contrib.set/proper-subset?" id="var-tag">proper-subset?</a> </span><span id="var-link"><a href="set-api.html#clojure.contrib.set/proper-superset?" id="var-tag">proper-superset?</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="singleton">singleton</h2>
<span id="author-line">by <span id="author-name">Stuart Sierra</span><br /></span>
<a href="singleton-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Singleton functions</pre>
Public variables and functions:
<span id="var-link"><a href="singleton-api.html#clojure.contrib.singleton/global-singleton" id="var-tag">global-singleton</a> </span><span id="var-link"><a href="singleton-api.html#clojure.contrib.singleton/per-thread-singleton" id="var-tag">per-thread-singleton</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="sql">sql</h2>
<span id="author-line">by <span id="author-name">Stephen C. Gilardi</span><br /></span>
<a href="sql-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">A Clojure interface to sql databases via jdbc.</pre>
<span id="see-also">See also:
<span id="see-also-link">
<a href="http://github.com/clojure/clojure-contrib/blob/master/modules/sql/src/test/clojure/clojure/contrib/test_sql.clj">Example code</a>
</span><br />
</span>
Public variables and functions:
<span id="var-link"><a href="sql-api.html#clojure.contrib.sql/connection" id="var-tag">connection</a> </span><span id="var-link"><a href="sql-api.html#clojure.contrib.sql/create-table" id="var-tag">create-table</a> </span><span id="var-link"><a href="sql-api.html#clojure.contrib.sql/delete-rows" id="var-tag">delete-rows</a> </span><span id="var-link"><a href="sql-api.html#clojure.contrib.sql/do-commands" id="var-tag">do-commands</a> </span><span id="var-link"><a href="sql-api.html#clojure.contrib.sql/do-prepared" id="var-tag">do-prepared</a> </span><span id="var-link"><a href="sql-api.html#clojure.contrib.sql/drop-table" id="var-tag">drop-table</a> </span><span id="var-link"><a href="sql-api.html#clojure.contrib.sql/find-connection" id="var-tag">find-connection</a> </span><span id="var-link"><a href="sql-api.html#clojure.contrib.sql/insert-records" id="var-tag">insert-records</a> </span><span id="var-link"><a href="sql-api.html#clojure.contrib.sql/insert-rows" id="var-tag">insert-rows</a> </span><span id="var-link"><a href="sql-api.html#clojure.contrib.sql/insert-values" id="var-tag">insert-values</a> </span><span id="var-link"><a href="sql-api.html#clojure.contrib.sql/is-rollback-only" id="var-tag">is-rollback-only</a> </span><span id="var-link"><a href="sql-api.html#clojure.contrib.sql/set-rollback-only" id="var-tag">set-rollback-only</a> </span><span id="var-link"><a href="sql-api.html#clojure.contrib.sql/transaction" id="var-tag">transaction</a> </span><span id="var-link"><a href="sql-api.html#clojure.contrib.sql/update-or-insert-values" id="var-tag">update-or-insert-values</a> </span><span id="var-link"><a href="sql-api.html#clojure.contrib.sql/update-values" id="var-tag">update-values</a> </span><span id="var-link"><a href="sql-api.html#clojure.contrib.sql/with-connection" id="var-tag">with-connection</a> </span><span id="var-link"><a href="sql-api.html#clojure.contrib.sql/with-query-results" id="var-tag">with-query-results</a> </span><br />
<span id="subspace"><br />Variables and functions in
<span id="name">sql.internal</span>:
<span id="sub-var-link">
<a href="sql-api.html#clojure.contrib.sql.internal/connection*">connection*</a>
</span><span id="sub-var-link">
<a href="sql-api.html#clojure.contrib.sql.internal/find-connection*">find-connection*</a>
</span><span id="sub-var-link">
<a href="sql-api.html#clojure.contrib.sql.internal/get-connection">get-connection</a>
</span><span id="sub-var-link">
<a href="sql-api.html#clojure.contrib.sql.internal/print-sql-exception">print-sql-exception</a>
</span><span id="sub-var-link">
<a href="sql-api.html#clojure.contrib.sql.internal/print-sql-exception-chain">print-sql-exception-chain</a>
</span><span id="sub-var-link">
<a href="sql-api.html#clojure.contrib.sql.internal/print-update-counts">print-update-counts</a>
</span><span id="sub-var-link">
<a href="sql-api.html#clojure.contrib.sql.internal/rollback">rollback</a>
</span><span id="sub-var-link">
<a href="sql-api.html#clojure.contrib.sql.internal/throw-rollback">throw-rollback</a>
</span><span id="sub-var-link">
<a href="sql-api.html#clojure.contrib.sql.internal/transaction*">transaction*</a>
</span><span id="sub-var-link">
<a href="sql-api.html#clojure.contrib.sql.internal/with-connection*">with-connection*</a>
</span><span id="sub-var-link">
<a href="sql-api.html#clojure.contrib.sql.internal/with-query-results*">with-query-results*</a>
</span>
<br />
</span>
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="stream-utils">stream-utils</h2>
<span id="author-line">by <span id="author-name">Konrad Hinsen</span><br /></span>
<a href="stream-utils-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Functions for setting up computational pipelines via data streams.
NOTE: This library is experimental. It may change significantly
with future release.
This library defines:
- an abstract stream type, whose interface consists of the
multimethod stream-next
- a macro for implementing streams
- implementations of stream for
1) Clojure sequences, and vectors
2) nil, representing an empty stream
- tools for writing stream transformers, including the
monad stream-m
- various utility functions for working with streams
Streams are building blocks in the construction of computational
pipelines. A stream is represented by its current state plus
a function that takes a stream state and obtains the next item
in the stream as well as the new stream state. The state is
implemented as a Java class or a Clojure type (as defined by the
function clojure.core/type), and the function is provided as an
implementation of the multimethod stream-next for this class or type.
While setting up pipelines using this mechanism is somewhat more
cumbersome than using Clojure's lazy seq mechanisms, there are a
few advantages:
- The state of a stream can be stored in any Clojure data structure,
and the stream can be re-generated from it any number of times.
Any number of states can be stored this way.
- The elements of the stream are never cached, so keeping a reference
to a stream state does not incur an uncontrollable memory penalty.
Note that the stream mechanism is thread-safe as long as the
concrete stream implementations do not use any mutable state.
Stream transformers take any number of input streams and produce one
output stream. They are typically written using the stream-m
monad. In the definition of a stream transformer, (pick s) returns
the next value of stream argument s, whereas pick-all returns the
next value of all stream arguments in the form of a vector.</pre>
Public variables and functions:
<span id="var-link"><a href="stream-utils-api.html#clojure.contrib.stream-utils/defst" id="var-tag">defst</a> </span><span id="var-link"><a href="stream-utils-api.html#clojure.contrib.stream-utils/defstream" id="var-tag">defstream</a> </span><span id="var-link"><a href="stream-utils-api.html#clojure.contrib.stream-utils/pick" id="var-tag">pick</a> </span><span id="var-link"><a href="stream-utils-api.html#clojure.contrib.stream-utils/pick-all" id="var-tag">pick-all</a> </span><span id="var-link"><a href="stream-utils-api.html#clojure.contrib.stream-utils/stream-drop" id="var-tag">stream-drop</a> </span><span id="var-link"><a href="stream-utils-api.html#clojure.contrib.stream-utils/stream-flatten" id="var-tag">stream-flatten</a> </span><span id="var-link"><a href="stream-utils-api.html#clojure.contrib.stream-utils/stream-m" id="var-tag">stream-m</a> </span><span id="var-link"><a href="stream-utils-api.html#clojure.contrib.stream-utils/stream-seq" id="var-tag">stream-seq</a> </span><span id="var-link"><a href="stream-utils-api.html#clojure.contrib.stream-utils/stream-type" id="var-tag">stream-type</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="strint">strint</h2>
<span id="author-line">by <span id="author-name">Chas Emerick</span><br /></span>
<a href="strint-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">String interpolation for Clojure.</pre>
Public variables and functions:
<span id="var-link"><a href="strint-api.html#clojure.contrib.strint/<<" id="var-tag"><<</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="swing-utils">swing-utils</h2>
<a href="swing-utils-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr"></pre>
Public variables and functions:
<span id="var-link"><a href="swing-utils-api.html#clojure.contrib.swing-utils/action-translation-table" id="var-tag">action-translation-table</a> </span><span id="var-link"><a href="swing-utils-api.html#clojure.contrib.swing-utils/add-action-listener" id="var-tag">add-action-listener</a> </span><span id="var-link"><a href="swing-utils-api.html#clojure.contrib.swing-utils/add-key-typed-listener" id="var-tag">add-key-typed-listener</a> </span><span id="var-link"><a href="swing-utils-api.html#clojure.contrib.swing-utils/do-swing" id="var-tag">do-swing</a> </span><span id="var-link"><a href="swing-utils-api.html#clojure.contrib.swing-utils/do-swing*" id="var-tag">do-swing*</a> </span><span id="var-link"><a href="swing-utils-api.html#clojure.contrib.swing-utils/do-swing-and-wait" id="var-tag">do-swing-and-wait</a> </span><span id="var-link"><a href="swing-utils-api.html#clojure.contrib.swing-utils/make-action" id="var-tag">make-action</a> </span><span id="var-link"><a href="swing-utils-api.html#clojure.contrib.swing-utils/make-menubar" id="var-tag">make-menubar</a> </span><span id="var-link"><a href="swing-utils-api.html#clojure.contrib.swing-utils/menu-constructor-dispatch" id="var-tag">menu-constructor-dispatch</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="test-base64">test-base64</h2>
<a href="test-base64-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr"></pre>
Public variables and functions:
<br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="trace">trace</h2>
<span id="author-line">by <span id="author-name">Stuart Sierra, Michel Salim</span><br /></span>
<a href="trace-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">This file defines simple "tracing" macros to help you see what your
code is doing.</pre>
Public variables and functions:
<span id="var-link"><a href="trace-api.html#clojure.contrib.trace/*trace-depth*" id="var-tag">*trace-depth*</a> </span><span id="var-link"><a href="trace-api.html#clojure.contrib.trace/deftrace" id="var-tag">deftrace</a> </span><span id="var-link"><a href="trace-api.html#clojure.contrib.trace/dotrace" id="var-tag">dotrace</a> </span><span id="var-link"><a href="trace-api.html#clojure.contrib.trace/trace" id="var-tag">trace</a> </span><span id="var-link"><a href="trace-api.html#clojure.contrib.trace/trace-fn-call" id="var-tag">trace-fn-call</a> </span><span id="var-link"><a href="trace-api.html#clojure.contrib.trace/trace-indent" id="var-tag">trace-indent</a> </span><span id="var-link"><a href="trace-api.html#clojure.contrib.trace/tracer" id="var-tag">tracer</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="types">types</h2>
<span id="author-line">by <span id="author-name">Konrad Hinsen</span><br /></span>
<a href="types-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">General and algebraic data types</pre>
Public variables and functions:
<span id="var-link"><a href="types-api.html#clojure.contrib.types/defadt" id="var-tag">defadt</a> </span><span id="var-link"><a href="types-api.html#clojure.contrib.types/deftype" id="var-tag">deftype</a> </span><span id="var-link"><a href="types-api.html#clojure.contrib.types/deftype-" id="var-tag">deftype-</a> </span><span id="var-link"><a href="types-api.html#clojure.contrib.types/match" id="var-tag">match</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="with-ns">with-ns</h2>
<span id="author-line">by <span id="author-name">Stuart Sierra</span><br /></span>
<a href="with-ns-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">Temporary namespace macro</pre>
Public variables and functions:
<span id="var-link"><a href="with-ns-api.html#clojure.contrib.with-ns/with-ns" id="var-tag">with-ns</a> </span><span id="var-link"><a href="with-ns-api.html#clojure.contrib.with-ns/with-temp-ns" id="var-tag">with-temp-ns</a> </span><br />
</div><div id="namespace-entry">
<br />
<hr />
<h2 id="zip-filter">zip-filter</h2>
<span id="author-line">by <span id="author-name">Chris Houser</span><br /></span>
<a href="zip-filter-api.html" id="api-link">Detailed API documentation</a><br />
<pre id="namespace-docstr">System for filtering trees and nodes generated by zip.clj in
general, and xml trees in particular.</pre>
Public variables and functions:
<span id="var-link"><a href="zip-filter-api.html#clojure.contrib.zip-filter/ancestors" id="var-tag">ancestors</a> </span><span id="var-link"><a href="zip-filter-api.html#clojure.contrib.zip-filter/children" id="var-tag">children</a> </span><span id="var-link"><a href="zip-filter-api.html#clojure.contrib.zip-filter/children-auto" id="var-tag">children-auto</a> </span><span id="var-link"><a href="zip-filter-api.html#clojure.contrib.zip-filter/descendants" id="var-tag">descendants</a> </span><span id="var-link"><a href="zip-filter-api.html#clojure.contrib.zip-filter/left-locs" id="var-tag">left-locs</a> </span><span id="var-link"><a href="zip-filter-api.html#clojure.contrib.zip-filter/leftmost?" id="var-tag">leftmost?</a> </span><span id="var-link"><a href="zip-filter-api.html#clojure.contrib.zip-filter/right-locs" id="var-tag">right-locs</a> </span><span id="var-link"><a href="zip-filter-api.html#clojure.contrib.zip-filter/rightmost?" id="var-tag">rightmost?</a> </span><br />
<span id="subspace"><br />Variables and functions in
<span id="name">zip-filter.xml</span>:
<span id="sub-var-link">
<a href="zip-filter-api.html#clojure.contrib.zip-filter.xml/attr">attr</a>
</span><span id="sub-var-link">
<a href="zip-filter-api.html#clojure.contrib.zip-filter.xml/attr=">attr=</a>
</span><span id="sub-var-link">
<a href="zip-filter-api.html#clojure.contrib.zip-filter.xml/seq-test">seq-test</a>
</span><span id="sub-var-link">
<a href="zip-filter-api.html#clojure.contrib.zip-filter.xml/tag=">tag=</a>
</span><span id="sub-var-link">
<a href="zip-filter-api.html#clojure.contrib.zip-filter.xml/text">text</a>
</span><span id="sub-var-link">
<a href="zip-filter-api.html#clojure.contrib.zip-filter.xml/text=">text=</a>
</span><span id="sub-var-link">
<a href="zip-filter-api.html#clojure.contrib.zip-filter.xml/xml->">xml-></a>
</span><span id="sub-var-link">
<a href="zip-filter-api.html#clojure.contrib.zip-filter.xml/xml1->">xml1-></a>
</span>
<br />
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="foot">
<div style="text-align: center;" id="copyright">Copyright 2007-2010 by Rich Hickey and the various contributors</div>
</div>
</div>
<div id="DesignedBy">Logo & site design by <a title="Visit Tom Hickey's website." href="http://www.tomhickey.com">Tom Hickey</a>.<br />
Clojure auto-documentation system by Tom Faulhaber.</div>
</div>
<!-- /AllContentContainer -->
</body>
</html>
|