facets 2.4.2 → 2.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (293) hide show
  1. data/AUTHORS +1 -1
  2. data/CHANGES +25 -5
  3. data/MANIFEST +67 -34
  4. data/METADATA +2 -2
  5. data/NEWS +54 -46
  6. data/doc/news/NEWS-2.4.0 +52 -0
  7. data/doc/rdoc/core/classes/Array.html +198 -198
  8. data/doc/rdoc/core/classes/Binding.html +86 -192
  9. data/doc/rdoc/core/classes/Class.html +136 -136
  10. data/doc/rdoc/core/classes/Comparable.html +45 -45
  11. data/doc/rdoc/core/classes/Dir.html +64 -64
  12. data/doc/rdoc/core/classes/Enumerable.html +287 -281
  13. data/doc/rdoc/core/classes/Exception.html +16 -16
  14. data/doc/rdoc/core/classes/FalseClass.html +8 -8
  15. data/doc/rdoc/core/classes/File.html +100 -100
  16. data/doc/rdoc/core/classes/FileTest.html +8 -8
  17. data/doc/rdoc/core/classes/Float.html +32 -32
  18. data/doc/rdoc/core/classes/Friend.html +8 -8
  19. data/doc/rdoc/core/classes/Functor.html +12 -12
  20. data/doc/rdoc/core/classes/Hash.html +439 -847
  21. data/doc/rdoc/{more → core}/classes/Indexable.html +115 -115
  22. data/doc/rdoc/core/classes/InstanceVariables.html +88 -88
  23. data/doc/rdoc/core/classes/Integer.html +142 -142
  24. data/doc/rdoc/core/classes/Kernel.html +602 -600
  25. data/doc/rdoc/core/classes/Lazy/Promise.html +1 -1
  26. data/doc/rdoc/core/classes/MatchData.html +30 -30
  27. data/doc/rdoc/core/classes/Module.html +379 -327
  28. data/doc/rdoc/core/classes/NilClass.html +32 -32
  29. data/doc/rdoc/core/classes/Numeric.html +46 -46
  30. data/doc/rdoc/core/classes/Object.html +4 -4
  31. data/doc/rdoc/core/classes/Proc.html +46 -134
  32. data/doc/rdoc/core/classes/Range.html +60 -60
  33. data/doc/rdoc/core/classes/Regexp.html +28 -28
  34. data/doc/rdoc/{more → core}/classes/Stackable.html +38 -38
  35. data/doc/rdoc/core/classes/String.html +844 -504
  36. data/doc/rdoc/core/classes/Symbol.html +62 -62
  37. data/doc/rdoc/core/classes/Time.html +112 -112
  38. data/doc/rdoc/core/classes/TrueClass.html +8 -8
  39. data/doc/rdoc/core/classes/UnboundMethod.html +22 -22
  40. data/doc/rdoc/core/created.rid +1 -1
  41. data/doc/rdoc/core/files/lib/core/facets/array_rb.html +4 -1
  42. data/doc/rdoc/core/files/lib/core/facets/binding_rb.html +1 -1
  43. data/doc/rdoc/core/files/lib/core/facets/boolean_rb.html +2 -2
  44. data/doc/rdoc/core/files/lib/core/facets/class/methodize_rb.html +96 -0
  45. data/doc/rdoc/core/files/lib/core/facets/class/pathize_rb.html +96 -0
  46. data/doc/rdoc/core/files/lib/core/facets/class_rb.html +5 -1
  47. data/doc/rdoc/core/files/lib/core/facets/dir_rb.html +1 -1
  48. data/doc/rdoc/core/files/lib/core/facets/{class/to_methodname_rb.html → enumerable/commonality_rb.html} +4 -4
  49. data/doc/rdoc/core/files/lib/core/facets/enumerable/entropy_rb.html +96 -0
  50. data/doc/rdoc/core/files/lib/core/facets/{class/to_pathname_rb.html → enumerable/frequency_rb.html} +4 -4
  51. data/doc/rdoc/core/files/lib/core/facets/enumerable/probability_rb.html +1 -1
  52. data/doc/rdoc/core/files/lib/core/facets/enumerable_rb.html +6 -2
  53. data/doc/rdoc/core/files/lib/core/facets/file_rb.html +2 -1
  54. data/doc/rdoc/core/files/lib/core/facets/hash_rb.html +7 -1
  55. data/doc/rdoc/{more/files/lib/more → core/files/lib/core}/facets/indexable_rb.html +2 -2
  56. data/doc/rdoc/core/files/lib/core/facets/kernel/require_all_rb.html +92 -0
  57. data/doc/rdoc/core/files/lib/core/facets/kernel/require_local_rb.html +92 -0
  58. data/doc/rdoc/core/files/lib/core/facets/kernel_rb.html +15 -2
  59. data/doc/rdoc/core/files/lib/core/facets/module/integrate_rb.html +96 -0
  60. data/doc/rdoc/core/files/lib/core/facets/module/methodize_rb.html +96 -0
  61. data/doc/rdoc/core/files/lib/core/facets/module/module_load_rb.html +1 -1
  62. data/doc/rdoc/core/files/lib/core/facets/module/pathize_rb.html +5 -1
  63. data/doc/rdoc/core/files/lib/core/facets/module/redefine_method_rb.html +92 -0
  64. data/doc/rdoc/core/files/lib/core/facets/module/redirect_method_rb.html +92 -0
  65. data/doc/rdoc/core/files/lib/core/facets/module/rename_method_rb.html +92 -0
  66. data/doc/rdoc/core/files/lib/core/facets/module/revise_rb.html +8 -1
  67. data/doc/rdoc/core/files/lib/core/facets/module/wrap_method_rb.html +92 -0
  68. data/doc/rdoc/core/files/lib/core/facets/module_rb.html +8 -5
  69. data/doc/rdoc/core/files/lib/core/facets/numeric_rb.html +2 -1
  70. data/doc/rdoc/core/files/lib/core/facets/proc_rb.html +3 -5
  71. data/doc/rdoc/{more/files/lib/more → core/files/lib/core}/facets/stackable_rb.html +3 -4
  72. data/doc/rdoc/core/files/lib/core/facets/string/each_word_rb.html +96 -0
  73. data/doc/rdoc/core/files/lib/core/facets/{module/clone_rb.html → string/methodize_rb.html} +4 -4
  74. data/doc/rdoc/core/files/lib/core/facets/{kernel/load_rb.html → string/pathize_rb.html} +4 -4
  75. data/doc/rdoc/core/files/lib/core/facets/string/word_wrap_rb.html +92 -0
  76. data/doc/rdoc/core/files/lib/core/facets/string/words_rb.html +1 -5
  77. data/doc/rdoc/core/files/lib/core/facets/string_rb.html +8 -3
  78. data/doc/rdoc/core/files/lib/core/facets/symbol_rb.html +2 -1
  79. data/doc/rdoc/core/fr_class_index.html +2 -3
  80. data/doc/rdoc/core/fr_file_index.html +36 -16
  81. data/doc/rdoc/core/fr_method_index.html +778 -784
  82. data/doc/rdoc/lore/created.rid +1 -1
  83. data/doc/rdoc/more/classes/ANSICode.html +66 -66
  84. data/doc/rdoc/more/classes/Advisable.html +37 -37
  85. data/doc/rdoc/more/classes/Advisable/Method.html +20 -20
  86. data/doc/rdoc/more/classes/Archive/Tar/Minitar.html +27 -27
  87. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Input.html +28 -28
  88. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Output.html +19 -19
  89. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Reader.html +31 -31
  90. data/doc/rdoc/more/classes/Archive/Tar/Minitar/Writer.html +33 -33
  91. data/doc/rdoc/more/classes/Association.html +28 -28
  92. data/doc/rdoc/more/classes/Association/Kernel.html +8 -8
  93. data/doc/rdoc/more/classes/Autoarray.html +12 -12
  94. data/doc/rdoc/more/classes/BBCode.html +34 -34
  95. data/doc/rdoc/more/classes/BaseX.html +16 -16
  96. data/doc/rdoc/more/classes/BiCrypt.html +67 -67
  97. data/doc/rdoc/more/classes/BigDuration.html +30 -30
  98. data/doc/rdoc/more/classes/BinReadable.html +85 -85
  99. data/doc/rdoc/more/classes/BinReadable/ByteOrder.html +25 -25
  100. data/doc/rdoc/more/classes/Binding.html +201 -0
  101. data/doc/rdoc/more/classes/Buildable.html +4 -4
  102. data/doc/rdoc/more/classes/BuildingBlock.html +32 -32
  103. data/doc/rdoc/more/classes/CLI.html +108 -0
  104. data/doc/rdoc/more/classes/CLI/Arguments.html +76 -76
  105. data/doc/rdoc/more/classes/CLI/Command.html +22 -22
  106. data/doc/rdoc/more/classes/CLI/NoCommandError.html +4 -4
  107. data/doc/rdoc/more/classes/CLI/NoOptionError.html +4 -4
  108. data/doc/rdoc/more/classes/CacheDecorator.html +21 -21
  109. data/doc/rdoc/more/classes/Capsule.html +41 -41
  110. data/doc/rdoc/more/classes/Chain.html +17 -17
  111. data/doc/rdoc/more/classes/Cloneable.html +4 -4
  112. data/doc/rdoc/more/classes/ConsoleUtils.html +18 -18
  113. data/doc/rdoc/more/classes/Coroutine.html +28 -28
  114. data/doc/rdoc/more/classes/Crypt.html +16 -16
  115. data/doc/rdoc/more/classes/CssFilter.html +45 -45
  116. data/doc/rdoc/more/classes/CssTree.html +8 -8
  117. data/doc/rdoc/more/classes/Dictionary.html +228 -228
  118. data/doc/rdoc/more/classes/DictionaryMatcher.html +38 -38
  119. data/doc/rdoc/more/classes/DictionaryMatcher/MatchData.html +4 -4
  120. data/doc/rdoc/more/classes/Downloader.html +56 -56
  121. data/doc/rdoc/more/classes/Duration.html +68 -68
  122. data/doc/rdoc/more/classes/Enumerable.html +44 -44
  123. data/doc/rdoc/more/classes/Enumerable/Elementor.html +16 -16
  124. data/doc/rdoc/more/classes/Enumerable/Enumerator.html +4 -4
  125. data/doc/rdoc/more/classes/EnumerablePass.html +15 -15
  126. data/doc/rdoc/more/classes/Equatable.html +16 -16
  127. data/doc/rdoc/more/classes/EventHook.html +8 -8
  128. data/doc/rdoc/more/classes/Expirable.html +17 -17
  129. data/doc/rdoc/more/classes/FileList.html +125 -125
  130. data/doc/rdoc/more/classes/FileShell.html +147 -147
  131. data/doc/rdoc/more/classes/Fileable.html +14 -14
  132. data/doc/rdoc/more/classes/Fileable/DSL.html +41 -41
  133. data/doc/rdoc/more/classes/Hash.html +306 -14
  134. data/doc/rdoc/more/classes/Hash2Xml.html +4 -4
  135. data/doc/rdoc/more/classes/HtmlFilter.html +9 -9
  136. data/doc/rdoc/more/classes/IORedirect.html +19 -19
  137. data/doc/rdoc/more/classes/InfinityClass.html +36 -36
  138. data/doc/rdoc/more/classes/InfinityClass/Numeric.html +23 -23
  139. data/doc/rdoc/more/classes/Ini.html +37 -37
  140. data/doc/rdoc/more/classes/Instantiable.html +9 -9
  141. data/doc/rdoc/more/classes/Instantise.html +8 -8
  142. data/doc/rdoc/more/classes/Interval.html +187 -187
  143. data/doc/rdoc/more/classes/It.html +12 -12
  144. data/doc/rdoc/more/classes/Kernel.html +77 -77
  145. data/doc/rdoc/more/classes/LRUCache.html +38 -38
  146. data/doc/rdoc/more/classes/LinkedList.html +68 -68
  147. data/doc/rdoc/more/classes/LinkedList/Node.html +4 -4
  148. data/doc/rdoc/{core → more}/classes/MissingArgument.html +1 -2
  149. data/doc/rdoc/more/classes/Module.html +171 -171
  150. data/doc/rdoc/more/classes/Multiton.html +12 -12
  151. data/doc/rdoc/more/classes/Multiton/MetaMethods.html +28 -28
  152. data/doc/rdoc/more/classes/Net/SMTP.html +19 -19
  153. data/doc/rdoc/more/classes/NullClass.html +24 -24
  154. data/doc/rdoc/more/classes/ObjectReflection.html +12 -12
  155. data/doc/rdoc/more/classes/OpEsc.html +5 -5
  156. data/doc/rdoc/more/classes/OpenCascade.html +4 -4
  157. data/doc/rdoc/more/classes/OpenCollection.html +8 -8
  158. data/doc/rdoc/more/classes/OpenHash.html +9 -9
  159. data/doc/rdoc/more/classes/OpenObject.html +95 -95
  160. data/doc/rdoc/more/classes/PQueue.html +84 -84
  161. data/doc/rdoc/more/classes/Paramix.html +11 -11
  162. data/doc/rdoc/more/classes/Paramix/Delegator.html +16 -16
  163. data/doc/rdoc/more/classes/PathList.html +8 -8
  164. data/doc/rdoc/more/classes/PathList/Finder.html +8 -8
  165. data/doc/rdoc/more/classes/Platform.html +46 -46
  166. data/doc/rdoc/more/classes/Pool.html +18 -18
  167. data/doc/rdoc/more/classes/Proc.html +48 -4
  168. data/doc/rdoc/more/classes/ProgressBar.html +52 -52
  169. data/doc/rdoc/more/classes/Prototype.html +28 -28
  170. data/doc/rdoc/more/classes/RWDelegator.html +16 -16
  171. data/doc/rdoc/more/classes/Random.html +9 -9
  172. data/doc/rdoc/more/classes/Random/Array.html +37 -37
  173. data/doc/rdoc/more/classes/Random/Hash.html +52 -52
  174. data/doc/rdoc/more/classes/Random/Object.html +4 -4
  175. data/doc/rdoc/more/classes/Random/String.html +34 -34
  176. data/doc/rdoc/more/classes/Random/String/Self.html +9 -9
  177. data/doc/rdoc/more/classes/Recorder.html +16 -16
  178. data/doc/rdoc/more/classes/Reference.html +19 -19
  179. data/doc/rdoc/more/classes/Registerable.html +13 -13
  180. data/doc/rdoc/more/classes/Semaphore.html +36 -36
  181. data/doc/rdoc/more/classes/Settings.html +28 -28
  182. data/doc/rdoc/more/classes/Settings/Setting.html +13 -13
  183. data/doc/rdoc/more/classes/Settings/SettingCollection.html +4 -4
  184. data/doc/rdoc/more/classes/SimpleStringIO.html +8 -8
  185. data/doc/rdoc/more/classes/Snapshot.html +16 -16
  186. data/doc/rdoc/more/classes/Snapshot/ValueHolder.html +12 -12
  187. data/doc/rdoc/more/classes/String/Style.html +113 -113
  188. data/doc/rdoc/{core → more}/classes/String/Words.html +78 -78
  189. data/doc/rdoc/more/classes/Struct.html +8 -8
  190. data/doc/rdoc/more/classes/SyncArray.html +4 -4
  191. data/doc/rdoc/more/classes/SyncHash.html +4 -4
  192. data/doc/rdoc/more/classes/SyncHash/Delegator.html +28 -28
  193. data/doc/rdoc/more/classes/SyncHash/Inheritor.html +28 -28
  194. data/doc/rdoc/more/classes/System.html +253 -253
  195. data/doc/rdoc/more/classes/Timer.html +48 -48
  196. data/doc/rdoc/more/classes/Timer/Dummy.html +9 -9
  197. data/doc/rdoc/more/classes/TracePoint.html +64 -62
  198. data/doc/rdoc/more/classes/Tuple.html +170 -170
  199. data/doc/rdoc/more/classes/TypeCast/Class.html +4 -4
  200. data/doc/rdoc/more/classes/TypeCast/Object.html +4 -4
  201. data/doc/rdoc/more/classes/Uninheritable.html +6 -6
  202. data/doc/rdoc/more/classes/UploadUtils.html +49 -49
  203. data/doc/rdoc/more/classes/VersionNumber.html +53 -53
  204. data/doc/rdoc/more/classes/Weekdays.html +28 -28
  205. data/doc/rdoc/more/classes/XOXO.html +9 -9
  206. data/doc/rdoc/more/classes/ZipUtils.html +58 -58
  207. data/doc/rdoc/more/classes/ZipUtils/DryRun.html +28 -28
  208. data/doc/rdoc/more/classes/ZipUtils/NoWrite.html +28 -28
  209. data/doc/rdoc/more/classes/ZipUtils/Verbose.html +28 -28
  210. data/doc/rdoc/more/created.rid +1 -1
  211. data/doc/rdoc/more/files/lib/more/facets/ansicode_rb.html +1 -1
  212. data/doc/rdoc/{core/files/lib/core → more/files/lib/more}/facets/binding/opvars_rb.html +2 -2
  213. data/doc/rdoc/{core/files/lib/core → more/files/lib/more}/facets/hash/stringify_keys_rb.html +2 -2
  214. data/doc/rdoc/{core/files/lib/core → more/files/lib/more}/facets/hash/symbolize_keys_rb.html +2 -2
  215. data/doc/rdoc/{core/files/lib/core/facets/proc → more/files/lib/more/facets}/partial_rb.html +8 -7
  216. data/doc/rdoc/more/files/lib/more/facets/snapshot_rb.html +2 -2
  217. data/doc/rdoc/more/files/lib/more/facets/string/words_rb.html +96 -0
  218. data/doc/rdoc/more/files/lib/more/facets/tracepoint_rb.html +13 -8
  219. data/doc/rdoc/more/fr_class_index.html +4 -2
  220. data/doc/rdoc/more/fr_file_index.html +9 -2
  221. data/doc/rdoc/more/fr_method_index.html +1013 -1009
  222. data/doc/ri/CLI/cdesc-CLI.yaml +7 -2
  223. data/doc/ri/Enumerable/probability-i.yaml +1 -1
  224. data/doc/ri/Module/append_features-i.yaml +4 -3
  225. data/doc/ri/Module/cdesc-Module.yaml +4 -3
  226. data/doc/ri/Module/methodize-i.yaml +14 -0
  227. data/doc/ri/Module/redefine_method-i.yaml +1 -1
  228. data/doc/ri/Module/redirect_method-i.yaml +3 -1
  229. data/doc/ri/Module/rename_method-i.yaml +1 -1
  230. data/doc/ri/created.rid +1 -1
  231. data/lib/core/facets/array.rb +3 -0
  232. data/lib/core/facets/binding.rb +0 -1
  233. data/lib/core/facets/class.rb +4 -4
  234. data/lib/core/facets/class/{to_methodname.rb → methodize.rb} +5 -2
  235. data/lib/core/facets/class/pathize.rb +14 -0
  236. data/lib/core/facets/enumerable.rb +5 -2
  237. data/lib/core/facets/enumerable/commonality.rb +33 -0
  238. data/lib/core/facets/enumerable/entropy.rb +37 -0
  239. data/lib/core/facets/enumerable/frequency.rb +18 -0
  240. data/lib/core/facets/enumerable/probability.rb +1 -98
  241. data/lib/core/facets/file.rb +1 -1
  242. data/lib/core/facets/hash.rb +6 -0
  243. data/lib/{more → core}/facets/indexable.rb +0 -0
  244. data/lib/core/facets/kernel.rb +15 -1
  245. data/lib/core/facets/kernel/require_all.rb +21 -0
  246. data/lib/core/facets/kernel/{load.rb → require_local.rb} +6 -23
  247. data/lib/core/facets/module.rb +7 -3
  248. data/lib/core/facets/module/integrate.rb +2 -0
  249. data/lib/core/facets/module/methodize.rb +14 -0
  250. data/lib/core/facets/module/pathize.rb +10 -7
  251. data/lib/core/facets/module/redefine_method.rb +35 -0
  252. data/lib/core/facets/module/redirect_method.rb +45 -0
  253. data/lib/core/facets/module/rename_method.rb +20 -0
  254. data/lib/core/facets/module/revise.rb +7 -113
  255. data/lib/core/facets/module/wrap_method.rb +28 -0
  256. data/lib/core/facets/numeric.rb +1 -1
  257. data/lib/core/facets/proc.rb +2 -3
  258. data/lib/{more → core}/facets/stackable.rb +0 -0
  259. data/lib/core/facets/string.rb +8 -6
  260. data/lib/core/facets/string/each_word.rb +13 -0
  261. data/lib/core/facets/string/methodize.rb +12 -0
  262. data/lib/core/facets/string/pathize.rb +12 -0
  263. data/lib/core/facets/string/word_wrap.rb +34 -0
  264. data/lib/core/facets/string/words.rb +6 -167
  265. data/lib/core/facets/symbol.rb +1 -0
  266. data/lib/more/facets/ansicode.rb +4 -4
  267. data/lib/{core → more}/facets/binding/opvars.rb +0 -0
  268. data/lib/{core → more}/facets/hash/stringify_keys.rb +0 -0
  269. data/lib/{core → more}/facets/hash/symbolize_keys.rb +5 -6
  270. data/lib/{core/facets/proc → more/facets}/partial.rb +0 -0
  271. data/lib/more/facets/string/words.rb +173 -0
  272. data/test/core/dir/test_multiglob.rb +1 -0
  273. data/test/core/dir/test_recurse.rb +1 -0
  274. data/test/core/enumerable/test_commonality.rb +15 -0
  275. data/test/core/enumerable/test_entropy.rb +15 -0
  276. data/test/core/enumerable/test_frequency.rb +11 -0
  277. data/test/core/enumerable/test_probability.rb +1 -34
  278. data/test/core/string/test_each_word.rb +14 -0
  279. data/test/core/string/test_fold.rb +1 -1
  280. data/test/core/string/test_word_wrap.rb +35 -0
  281. data/test/core/string/test_words.rb +12 -61
  282. data/test/more/test_command.rb +7 -9
  283. data/test/more/test_paramix.rb +4 -1
  284. data/test/{core/proc → more}/test_partial.rb +1 -1
  285. metadata +75 -38
  286. data/doc/rdoc/core/classes/Module/CloneExtensions.html +0 -287
  287. data/doc/ri/Module/CloneExtensions/cdesc-CloneExtensions.yaml +0 -20
  288. data/doc/ri/Module/CloneExtensions/clone_removing-i.yaml +0 -14
  289. data/doc/ri/Module/CloneExtensions/clone_renaming-i.yaml +0 -14
  290. data/doc/ri/Module/CloneExtensions/clone_using-i.yaml +0 -14
  291. data/lib/core/facets/class/to_pathname.rb +0 -12
  292. data/lib/core/facets/module/clone.rb +0 -57
  293. data/test/core/module/test_clone.rb +0 -45
@@ -89,20 +89,20 @@ Object
89
89
 
90
90
  <div class="sectiontitle">Methods</div>
91
91
  <ul>
92
- <li><a href="#M000056">ascend</a></li>
93
- <li><a href="#M000063">ascend</a></li>
94
- <li><a href="#M000064">descend</a></li>
95
- <li><a href="#M000057">descend</a></li>
96
- <li><a href="#M000068">ls_r</a></li>
97
- <li><a href="#M000061">ls_r</a></li>
98
- <li><a href="#M000058">multiglob</a></li>
99
- <li><a href="#M000065">multiglob</a></li>
100
- <li><a href="#M000066">multiglob_r</a></li>
101
- <li><a href="#M000059">multiglob_r</a></li>
102
- <li><a href="#M000062">parent?</a></li>
103
- <li><a href="#M000069">parent?</a></li>
104
- <li><a href="#M000067">recurse</a></li>
105
- <li><a href="#M000060">recurse</a></li>
92
+ <li><a href="#M000054">ascend</a></li>
93
+ <li><a href="#M000061">ascend</a></li>
94
+ <li><a href="#M000062">descend</a></li>
95
+ <li><a href="#M000055">descend</a></li>
96
+ <li><a href="#M000066">ls_r</a></li>
97
+ <li><a href="#M000059">ls_r</a></li>
98
+ <li><a href="#M000056">multiglob</a></li>
99
+ <li><a href="#M000063">multiglob</a></li>
100
+ <li><a href="#M000064">multiglob_r</a></li>
101
+ <li><a href="#M000057">multiglob_r</a></li>
102
+ <li><a href="#M000060">parent?</a></li>
103
+ <li><a href="#M000067">parent?</a></li>
104
+ <li><a href="#M000065">recurse</a></li>
105
+ <li><a href="#M000058">recurse</a></li>
106
106
  </ul>
107
107
 
108
108
 
@@ -113,7 +113,7 @@ Object
113
113
  <div class="sectiontitle">Public Class methods</div>
114
114
  <div class="method">
115
115
  <div class="title">
116
- <a name="M000056"></a><b>ascend</b>(dir, inclusive=true, &amp;blk)
116
+ <a name="M000054"></a><b>ascend</b>(dir, inclusive=true, &amp;blk)
117
117
  </div>
118
118
  <div class="description">
119
119
  <p>
@@ -137,8 +137,8 @@ Ascend a directory path.
137
137
  </pre>
138
138
  </div>
139
139
  <div class="sourcecode">
140
- <p class="source-link">[ <a href="javascript:toggleSource('M000056_source')" id="l_M000056_source">show source</a> ]</p>
141
- <div id="M000056_source" class="dyn-source">
140
+ <p class="source-link">[ <a href="javascript:toggleSource('M000054_source')" id="l_M000054_source">show source</a> ]</p>
141
+ <div id="M000054_source" class="dyn-source">
142
142
  <pre>
143
143
  <span class="ruby-comment cmt"># File lib/core/facets/dir/ascend.rb, line 20</span>
144
144
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">ascend</span>(<span class="ruby-identifier">dir</span>, <span class="ruby-identifier">inclusive</span>=<span class="ruby-keyword kw">true</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>)
@@ -160,7 +160,7 @@ Ascend a directory path.
160
160
  </div>
161
161
  <div class="method">
162
162
  <div class="title">
163
- <a name="M000063"></a><b>ascend</b>(dir, inclusive=true, &amp;blk)
163
+ <a name="M000061"></a><b>ascend</b>(dir, inclusive=true, &amp;blk)
164
164
  </div>
165
165
  <div class="description">
166
166
  <p>
@@ -184,8 +184,8 @@ Ascend a directory path.
184
184
  </pre>
185
185
  </div>
186
186
  <div class="sourcecode">
187
- <p class="source-link">[ <a href="javascript:toggleSource('M000063_source')" id="l_M000063_source">show source</a> ]</p>
188
- <div id="M000063_source" class="dyn-source">
187
+ <p class="source-link">[ <a href="javascript:toggleSource('M000061_source')" id="l_M000061_source">show source</a> ]</p>
188
+ <div id="M000061_source" class="dyn-source">
189
189
  <pre>
190
190
  <span class="ruby-comment cmt"># File lib/core/facets/dir/ascend.rb, line 20</span>
191
191
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">ascend</span>(<span class="ruby-identifier">dir</span>, <span class="ruby-identifier">inclusive</span>=<span class="ruby-keyword kw">true</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>)
@@ -207,7 +207,7 @@ Ascend a directory path.
207
207
  </div>
208
208
  <div class="method">
209
209
  <div class="title">
210
- <a name="M000064"></a><b>descend</b>(path) {|| ...}
210
+ <a name="M000062"></a><b>descend</b>(path) {|| ...}
211
211
  </div>
212
212
  <div class="description">
213
213
  <p>
@@ -231,8 +231,8 @@ Descend a directory path.
231
231
  </pre>
232
232
  </div>
233
233
  <div class="sourcecode">
234
- <p class="source-link">[ <a href="javascript:toggleSource('M000064_source')" id="l_M000064_source">show source</a> ]</p>
235
- <div id="M000064_source" class="dyn-source">
234
+ <p class="source-link">[ <a href="javascript:toggleSource('M000062_source')" id="l_M000062_source">show source</a> ]</p>
235
+ <div id="M000062_source" class="dyn-source">
236
236
  <pre>
237
237
  <span class="ruby-comment cmt"># File lib/core/facets/dir/ascend.rb, line 49</span>
238
238
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">descend</span>(<span class="ruby-identifier">path</span>) <span class="ruby-comment cmt">#:yield:</span>
@@ -249,7 +249,7 @@ Descend a directory path.
249
249
  </div>
250
250
  <div class="method">
251
251
  <div class="title">
252
- <a name="M000057"></a><b>descend</b>(path) {|| ...}
252
+ <a name="M000055"></a><b>descend</b>(path) {|| ...}
253
253
  </div>
254
254
  <div class="description">
255
255
  <p>
@@ -273,8 +273,8 @@ Descend a directory path.
273
273
  </pre>
274
274
  </div>
275
275
  <div class="sourcecode">
276
- <p class="source-link">[ <a href="javascript:toggleSource('M000057_source')" id="l_M000057_source">show source</a> ]</p>
277
- <div id="M000057_source" class="dyn-source">
276
+ <p class="source-link">[ <a href="javascript:toggleSource('M000055_source')" id="l_M000055_source">show source</a> ]</p>
277
+ <div id="M000055_source" class="dyn-source">
278
278
  <pre>
279
279
  <span class="ruby-comment cmt"># File lib/core/facets/dir/ascend.rb, line 49</span>
280
280
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">descend</span>(<span class="ruby-identifier">path</span>) <span class="ruby-comment cmt">#:yield:</span>
@@ -291,16 +291,16 @@ Descend a directory path.
291
291
  </div>
292
292
  <div class="method">
293
293
  <div class="title">
294
- <a name="M000068"></a><b>ls_r</b>(path='.', &amp;block)
294
+ <a name="M000066"></a><b>ls_r</b>(path='.', &amp;block)
295
295
  </div>
296
296
  <div class="description">
297
297
  <p>
298
- Same as <a href="Dir.html#M000060">Dir#recurse</a>.
298
+ Same as <a href="Dir.html#M000058">Dir#recurse</a>.
299
299
  </p>
300
300
  </div>
301
301
  <div class="sourcecode">
302
- <p class="source-link">[ <a href="javascript:toggleSource('M000068_source')" id="l_M000068_source">show source</a> ]</p>
303
- <div id="M000068_source" class="dyn-source">
302
+ <p class="source-link">[ <a href="javascript:toggleSource('M000066_source')" id="l_M000066_source">show source</a> ]</p>
303
+ <div id="M000066_source" class="dyn-source">
304
304
  <pre>
305
305
  <span class="ruby-comment cmt"># File lib/core/facets/dir/recurse.rb, line 24</span>
306
306
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">ls_r</span>(<span class="ruby-identifier">path</span>=<span class="ruby-value str">'.'</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -312,16 +312,16 @@ Same as <a href="Dir.html#M000060">Dir#recurse</a>.
312
312
  </div>
313
313
  <div class="method">
314
314
  <div class="title">
315
- <a name="M000061"></a><b>ls_r</b>(path='.', &amp;block)
315
+ <a name="M000059"></a><b>ls_r</b>(path='.', &amp;block)
316
316
  </div>
317
317
  <div class="description">
318
318
  <p>
319
- Same as <a href="Dir.html#M000060">Dir#recurse</a>.
319
+ Same as <a href="Dir.html#M000058">Dir#recurse</a>.
320
320
  </p>
321
321
  </div>
322
322
  <div class="sourcecode">
323
- <p class="source-link">[ <a href="javascript:toggleSource('M000061_source')" id="l_M000061_source">show source</a> ]</p>
324
- <div id="M000061_source" class="dyn-source">
323
+ <p class="source-link">[ <a href="javascript:toggleSource('M000059_source')" id="l_M000059_source">show source</a> ]</p>
324
+ <div id="M000059_source" class="dyn-source">
325
325
  <pre>
326
326
  <span class="ruby-comment cmt"># File lib/core/facets/dir/recurse.rb, line 24</span>
327
327
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">ls_r</span>(<span class="ruby-identifier">path</span>=<span class="ruby-value str">'.'</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -333,7 +333,7 @@ Same as <a href="Dir.html#M000060">Dir#recurse</a>.
333
333
  </div>
334
334
  <div class="method">
335
335
  <div class="title">
336
- <a name="M000058"></a><b>multiglob</b>(*patterns)
336
+ <a name="M000056"></a><b>multiglob</b>(*patterns)
337
337
  </div>
338
338
  <div class="description">
339
339
  <p>
@@ -343,7 +343,7 @@ Like <tt>glob</tt> but can take multiple patterns.
343
343
  Dir.multiglob( '*.rb', '*.py' )
344
344
  </pre>
345
345
  <p>
346
- Rather then constants for options <a href="Dir.html#M000058">multiglob</a>
346
+ Rather then constants for options <a href="Dir.html#M000056">multiglob</a>
347
347
  accepts a trailing options hash of symbol keys.
348
348
  </p>
349
349
  <pre>
@@ -354,7 +354,7 @@ accepts a trailing options hash of symbol keys.
354
354
  :strict File::FNM_PATHNAME &amp;&amp; File::FNM_DOTMATCH
355
355
  </pre>
356
356
  <p>
357
- It also has an option for <a href="Dir.html#M000060">recurse</a>.
357
+ It also has an option for <a href="Dir.html#M000058">recurse</a>.
358
358
  </p>
359
359
  <pre>
360
360
  :recurse Recurively include contents of directories.
@@ -373,8 +373,8 @@ would have the same result as
373
373
  </pre>
374
374
  </div>
375
375
  <div class="sourcecode">
376
- <p class="source-link">[ <a href="javascript:toggleSource('M000058_source')" id="l_M000058_source">show source</a> ]</p>
377
- <div id="M000058_source" class="dyn-source">
376
+ <p class="source-link">[ <a href="javascript:toggleSource('M000056_source')" id="l_M000056_source">show source</a> ]</p>
377
+ <div id="M000056_source" class="dyn-source">
378
378
  <pre>
379
379
  <span class="ruby-comment cmt"># File lib/core/facets/dir/multiglob.rb, line 41</span>
380
380
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">multiglob</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">patterns</span>)
@@ -408,7 +408,7 @@ would have the same result as
408
408
  </div>
409
409
  <div class="method">
410
410
  <div class="title">
411
- <a name="M000065"></a><b>multiglob</b>(*patterns)
411
+ <a name="M000063"></a><b>multiglob</b>(*patterns)
412
412
  </div>
413
413
  <div class="description">
414
414
  <p>
@@ -418,7 +418,7 @@ Like <tt>glob</tt> but can take multiple patterns.
418
418
  Dir.multiglob( '*.rb', '*.py' )
419
419
  </pre>
420
420
  <p>
421
- Rather then constants for options <a href="Dir.html#M000058">multiglob</a>
421
+ Rather then constants for options <a href="Dir.html#M000056">multiglob</a>
422
422
  accepts a trailing options hash of symbol keys.
423
423
  </p>
424
424
  <pre>
@@ -429,7 +429,7 @@ accepts a trailing options hash of symbol keys.
429
429
  :strict File::FNM_PATHNAME &amp;&amp; File::FNM_DOTMATCH
430
430
  </pre>
431
431
  <p>
432
- It also has an option for <a href="Dir.html#M000060">recurse</a>.
432
+ It also has an option for <a href="Dir.html#M000058">recurse</a>.
433
433
  </p>
434
434
  <pre>
435
435
  :recurse Recurively include contents of directories.
@@ -448,8 +448,8 @@ would have the same result as
448
448
  </pre>
449
449
  </div>
450
450
  <div class="sourcecode">
451
- <p class="source-link">[ <a href="javascript:toggleSource('M000065_source')" id="l_M000065_source">show source</a> ]</p>
452
- <div id="M000065_source" class="dyn-source">
451
+ <p class="source-link">[ <a href="javascript:toggleSource('M000063_source')" id="l_M000063_source">show source</a> ]</p>
452
+ <div id="M000063_source" class="dyn-source">
453
453
  <pre>
454
454
  <span class="ruby-comment cmt"># File lib/core/facets/dir/multiglob.rb, line 41</span>
455
455
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">multiglob</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">patterns</span>)
@@ -483,11 +483,11 @@ would have the same result as
483
483
  </div>
484
484
  <div class="method">
485
485
  <div class="title">
486
- <a name="M000066"></a><b>multiglob_r</b>(*patterns)
486
+ <a name="M000064"></a><b>multiglob_r</b>(*patterns)
487
487
  </div>
488
488
  <div class="description">
489
489
  <p>
490
- The same as <tt><a href="Dir.html#M000058">multiglob</a></tt>, but
490
+ The same as <tt><a href="Dir.html#M000056">multiglob</a></tt>, but
491
491
  recusively includes directories.
492
492
  </p>
493
493
  <pre>
@@ -507,8 +507,8 @@ The effect of which is
507
507
  </pre>
508
508
  </div>
509
509
  <div class="sourcecode">
510
- <p class="source-link">[ <a href="javascript:toggleSource('M000066_source')" id="l_M000066_source">show source</a> ]</p>
511
- <div id="M000066_source" class="dyn-source">
510
+ <p class="source-link">[ <a href="javascript:toggleSource('M000064_source')" id="l_M000064_source">show source</a> ]</p>
511
+ <div id="M000064_source" class="dyn-source">
512
512
  <pre>
513
513
  <span class="ruby-comment cmt"># File lib/core/facets/dir/multiglob.rb, line 80</span>
514
514
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">multiglob_r</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">patterns</span>)
@@ -528,11 +528,11 @@ The effect of which is
528
528
  </div>
529
529
  <div class="method">
530
530
  <div class="title">
531
- <a name="M000059"></a><b>multiglob_r</b>(*patterns)
531
+ <a name="M000057"></a><b>multiglob_r</b>(*patterns)
532
532
  </div>
533
533
  <div class="description">
534
534
  <p>
535
- The same as <tt><a href="Dir.html#M000058">multiglob</a></tt>, but
535
+ The same as <tt><a href="Dir.html#M000056">multiglob</a></tt>, but
536
536
  recusively includes directories.
537
537
  </p>
538
538
  <pre>
@@ -552,8 +552,8 @@ The effect of which is
552
552
  </pre>
553
553
  </div>
554
554
  <div class="sourcecode">
555
- <p class="source-link">[ <a href="javascript:toggleSource('M000059_source')" id="l_M000059_source">show source</a> ]</p>
556
- <div id="M000059_source" class="dyn-source">
555
+ <p class="source-link">[ <a href="javascript:toggleSource('M000057_source')" id="l_M000057_source">show source</a> ]</p>
556
+ <div id="M000057_source" class="dyn-source">
557
557
  <pre>
558
558
  <span class="ruby-comment cmt"># File lib/core/facets/dir/multiglob.rb, line 80</span>
559
559
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">multiglob_r</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">patterns</span>)
@@ -573,7 +573,7 @@ The effect of which is
573
573
  </div>
574
574
  <div class="method">
575
575
  <div class="title">
576
- <a name="M000062"></a><b>parent?</b>(parent_path, child_path)
576
+ <a name="M000060"></a><b>parent?</b>(parent_path, child_path)
577
577
  </div>
578
578
  <div class="description">
579
579
  <p>
@@ -584,8 +584,8 @@ TODO: Needs improvement. TODO: Instance version?
584
584
  </p>
585
585
  </div>
586
586
  <div class="sourcecode">
587
- <p class="source-link">[ <a href="javascript:toggleSource('M000062_source')" id="l_M000062_source">show source</a> ]</p>
588
- <div id="M000062_source" class="dyn-source">
587
+ <p class="source-link">[ <a href="javascript:toggleSource('M000060_source')" id="l_M000060_source">show source</a> ]</p>
588
+ <div id="M000060_source" class="dyn-source">
589
589
  <pre>
590
590
  <span class="ruby-comment cmt"># File lib/core/facets/dir/parent.rb, line 8</span>
591
591
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">parent?</span>(<span class="ruby-identifier">parent_path</span>, <span class="ruby-identifier">child_path</span>)
@@ -597,7 +597,7 @@ TODO: Needs improvement. TODO: Instance version?
597
597
  </div>
598
598
  <div class="method">
599
599
  <div class="title">
600
- <a name="M000069"></a><b>parent?</b>(parent_path, child_path)
600
+ <a name="M000067"></a><b>parent?</b>(parent_path, child_path)
601
601
  </div>
602
602
  <div class="description">
603
603
  <p>
@@ -608,8 +608,8 @@ TODO: Needs improvement. TODO: Instance version?
608
608
  </p>
609
609
  </div>
610
610
  <div class="sourcecode">
611
- <p class="source-link">[ <a href="javascript:toggleSource('M000069_source')" id="l_M000069_source">show source</a> ]</p>
612
- <div id="M000069_source" class="dyn-source">
611
+ <p class="source-link">[ <a href="javascript:toggleSource('M000067_source')" id="l_M000067_source">show source</a> ]</p>
612
+ <div id="M000067_source" class="dyn-source">
613
613
  <pre>
614
614
  <span class="ruby-comment cmt"># File lib/core/facets/dir/parent.rb, line 8</span>
615
615
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">parent?</span>(<span class="ruby-identifier">parent_path</span>, <span class="ruby-identifier">child_path</span>)
@@ -621,7 +621,7 @@ TODO: Needs improvement. TODO: Instance version?
621
621
  </div>
622
622
  <div class="method">
623
623
  <div class="title">
624
- <a name="M000067"></a><b>recurse</b>(path='.', &amp;block)
624
+ <a name="M000065"></a><b>recurse</b>(path='.', &amp;block)
625
625
  </div>
626
626
  <div class="description">
627
627
  <p>
@@ -632,8 +632,8 @@ Recursively scan a directory and pass each file to the given block.
632
632
  </pre>
633
633
  </div>
634
634
  <div class="sourcecode">
635
- <p class="source-link">[ <a href="javascript:toggleSource('M000067_source')" id="l_M000067_source">show source</a> ]</p>
636
- <div id="M000067_source" class="dyn-source">
635
+ <p class="source-link">[ <a href="javascript:toggleSource('M000065_source')" id="l_M000065_source">show source</a> ]</p>
636
+ <div id="M000065_source" class="dyn-source">
637
637
  <pre>
638
638
  <span class="ruby-comment cmt"># File lib/core/facets/dir/recurse.rb, line 8</span>
639
639
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">recurse</span>(<span class="ruby-identifier">path</span>=<span class="ruby-value str">'.'</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -656,7 +656,7 @@ Recursively scan a directory and pass each file to the given block.
656
656
  </div>
657
657
  <div class="method">
658
658
  <div class="title">
659
- <a name="M000060"></a><b>recurse</b>(path='.', &amp;block)
659
+ <a name="M000058"></a><b>recurse</b>(path='.', &amp;block)
660
660
  </div>
661
661
  <div class="description">
662
662
  <p>
@@ -667,8 +667,8 @@ Recursively scan a directory and pass each file to the given block.
667
667
  </pre>
668
668
  </div>
669
669
  <div class="sourcecode">
670
- <p class="source-link">[ <a href="javascript:toggleSource('M000060_source')" id="l_M000060_source">show source</a> ]</p>
671
- <div id="M000060_source" class="dyn-source">
670
+ <p class="source-link">[ <a href="javascript:toggleSource('M000058_source')" id="l_M000058_source">show source</a> ]</p>
671
+ <div id="M000058_source" class="dyn-source">
672
672
  <pre>
673
673
  <span class="ruby-comment cmt"># File lib/core/facets/dir/recurse.rb, line 8</span>
674
674
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">recurse</span>(<span class="ruby-identifier">path</span>=<span class="ruby-value str">'.'</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -63,8 +63,10 @@
63
63
  <a href="../files/lib/core/facets/enumerable/group_by_rb.html">lib/core/facets/enumerable/group_by.rb</a>
64
64
  <a href="../files/lib/core/facets/enumerable/sum_rb.html">lib/core/facets/enumerable/sum.rb</a>
65
65
  <a href="../files/lib/core/facets/enumerable/mode_rb.html">lib/core/facets/enumerable/mode.rb</a>
66
+ <a href="../files/lib/core/facets/enumerable/commonality_rb.html">lib/core/facets/enumerable/commonality.rb</a>
66
67
  <a href="../files/lib/core/facets/enumerable/occur_rb.html">lib/core/facets/enumerable/occur.rb</a>
67
68
  <a href="../files/lib/core/facets/enumerable/collect_rb.html">lib/core/facets/enumerable/collect.rb</a>
69
+ <a href="../files/lib/core/facets/enumerable/frequency_rb.html">lib/core/facets/enumerable/frequency.rb</a>
68
70
  <a href="../files/lib/core/facets/enumerable/divide_rb.html">lib/core/facets/enumerable/divide.rb</a>
69
71
  <a href="../files/lib/core/facets/enumerable/inject_rb.html">lib/core/facets/enumerable/inject.rb</a>
70
72
  <a href="../files/lib/core/facets/enumerable/duplicates_rb.html">lib/core/facets/enumerable/duplicates.rb</a>
@@ -73,6 +75,7 @@
73
75
  <a href="../files/lib/core/facets/enumerable/accumulate_rb.html">lib/core/facets/enumerable/accumulate.rb</a>
74
76
  <a href="../files/lib/core/facets/enumerable/mash_rb.html">lib/core/facets/enumerable/mash.rb</a>
75
77
  <a href="../files/lib/core/facets/enumerable/modulate_rb.html">lib/core/facets/enumerable/modulate.rb</a>
78
+ <a href="../files/lib/core/facets/enumerable/entropy_rb.html">lib/core/facets/enumerable/entropy.rb</a>
76
79
  <a href="../files/lib/core/facets/enumerable/split_rb.html">lib/core/facets/enumerable/split.rb</a>
77
80
  <a href="../files/lib/core/facets/enumerable/map_send_rb.html">lib/core/facets/enumerable/map_send.rb</a>
78
81
  <a href="../files/lib/core/facets/enumerable/probability_rb.html">lib/core/facets/enumerable/probability.rb</a>
@@ -83,8 +86,10 @@
83
86
  <a href="../files/lib/core/facets/enumerable/group_by_rb.html">lib/core/facets/enumerable/group_by.rb</a>
84
87
  <a href="../files/lib/core/facets/enumerable/sum_rb.html">lib/core/facets/enumerable/sum.rb</a>
85
88
  <a href="../files/lib/core/facets/enumerable/mode_rb.html">lib/core/facets/enumerable/mode.rb</a>
89
+ <a href="../files/lib/core/facets/enumerable/commonality_rb.html">lib/core/facets/enumerable/commonality.rb</a>
86
90
  <a href="../files/lib/core/facets/enumerable/occur_rb.html">lib/core/facets/enumerable/occur.rb</a>
87
91
  <a href="../files/lib/core/facets/enumerable/collect_rb.html">lib/core/facets/enumerable/collect.rb</a>
92
+ <a href="../files/lib/core/facets/enumerable/frequency_rb.html">lib/core/facets/enumerable/frequency.rb</a>
88
93
  <a href="../files/lib/core/facets/enumerable/divide_rb.html">lib/core/facets/enumerable/divide.rb</a>
89
94
  <a href="../files/lib/core/facets/enumerable/inject_rb.html">lib/core/facets/enumerable/inject.rb</a>
90
95
  <a href="../files/lib/core/facets/enumerable/duplicates_rb.html">lib/core/facets/enumerable/duplicates.rb</a>
@@ -93,6 +98,7 @@
93
98
  <a href="../files/lib/core/facets/enumerable/accumulate_rb.html">lib/core/facets/enumerable/accumulate.rb</a>
94
99
  <a href="../files/lib/core/facets/enumerable/mash_rb.html">lib/core/facets/enumerable/mash.rb</a>
95
100
  <a href="../files/lib/core/facets/enumerable/modulate_rb.html">lib/core/facets/enumerable/modulate.rb</a>
101
+ <a href="../files/lib/core/facets/enumerable/entropy_rb.html">lib/core/facets/enumerable/entropy.rb</a>
96
102
  <a href="../files/lib/core/facets/enumerable/split_rb.html">lib/core/facets/enumerable/split.rb</a>
97
103
  <a href="../files/lib/core/facets/enumerable/map_send_rb.html">lib/core/facets/enumerable/map_send.rb</a>
98
104
  <a href="../files/lib/core/facets/enumerable/probability_rb.html">lib/core/facets/enumerable/probability.rb</a>
@@ -114,65 +120,65 @@
114
120
 
115
121
  <div class="sectiontitle">Methods</div>
116
122
  <ul>
117
- <li><a href="#M000751">accumulate</a></li>
118
- <li><a href="#M000780">accumulate</a></li>
119
- <li><a href="#M000765">cluster_by</a></li>
120
- <li><a href="#M000736">cluster_by</a></li>
121
- <li><a href="#M000741">collect_with_index</a></li>
122
- <li><a href="#M000770">collect_with_index</a></li>
123
- <li><a href="#M000761">commonality</a></li>
124
- <li><a href="#M000790">commonality</a></li>
125
- <li><a href="#M000773">compact_collect</a></li>
126
- <li><a href="#M000744">compact_collect</a></li>
127
- <li><a href="#M000743">compact_map</a></li>
128
- <li><a href="#M000772">compact_map</a></li>
129
- <li><a href="#M000791">count</a></li>
130
- <li><a href="#M000762">count</a></li>
131
- <li><a href="#M000774">divide</a></li>
132
- <li><a href="#M000745">divide</a></li>
133
- <li><a href="#M000748">duplicates</a></li>
134
- <li><a href="#M000777">duplicates</a></li>
135
- <li><a href="#M000792">each_by</a></li>
136
- <li><a href="#M000763">each_by</a></li>
137
- <li><a href="#M000787">entropy</a></li>
138
- <li><a href="#M000758">entropy</a></li>
139
- <li><a href="#M000789">frequency</a></li>
140
- <li><a href="#M000760">frequency</a></li>
141
- <li><a href="#M000753">graph</a></li>
142
- <li><a href="#M000782">graph</a></li>
143
- <li><a href="#M000737">group_by</a></li>
144
- <li><a href="#M000766">group_by</a></li>
145
- <li><a href="#M000759">ideal_entropy</a></li>
146
- <li><a href="#M000788">ideal_entropy</a></li>
147
- <li><a href="#M000746">inject!</a></li>
148
- <li><a href="#M000775">inject!</a></li>
149
- <li><a href="#M000785">map_send</a></li>
150
- <li><a href="#M000756">map_send</a></li>
151
- <li><a href="#M000771">map_with_index</a></li>
152
- <li><a href="#M000742">map_with_index</a></li>
153
- <li><a href="#M000781">mash</a></li>
154
- <li><a href="#M000752">mash</a></li>
155
- <li><a href="#M000768">mode</a></li>
156
- <li><a href="#M000739">mode</a></li>
157
- <li><a href="#M000754">modulate</a></li>
158
- <li><a href="#M000783">modulate</a></li>
159
- <li><a href="#M000749">none?</a></li>
160
- <li><a href="#M000778">none?</a></li>
161
- <li><a href="#M000747">nonuniq</a></li>
162
- <li><a href="#M000776">nonuniq</a></li>
163
- <li><a href="#M000740">occur</a></li>
164
- <li><a href="#M000769">occur</a></li>
165
- <li><a href="#M000764">one?</a></li>
166
- <li><a href="#M000735">one?</a></li>
167
- <li><a href="#M000757">probability</a></li>
168
- <li><a href="#M000786">probability</a></li>
169
- <li><a href="#M000755">split</a></li>
170
- <li><a href="#M000784">split</a></li>
171
- <li><a href="#M000738">sum</a></li>
172
- <li><a href="#M000767">sum</a></li>
173
- <li><a href="#M000734">to_h</a></li>
174
- <li><a href="#M000779">uniq_by</a></li>
175
- <li><a href="#M000750">uniq_by</a></li>
123
+ <li><a href="#M000776">accumulate</a></li>
124
+ <li><a href="#M000747">accumulate</a></li>
125
+ <li><a href="#M000759">cluster_by</a></li>
126
+ <li><a href="#M000730">cluster_by</a></li>
127
+ <li><a href="#M000765">collect_with_index</a></li>
128
+ <li><a href="#M000736">collect_with_index</a></li>
129
+ <li><a href="#M000763">commonality</a></li>
130
+ <li><a href="#M000734">commonality</a></li>
131
+ <li><a href="#M000768">compact_collect</a></li>
132
+ <li><a href="#M000739">compact_collect</a></li>
133
+ <li><a href="#M000738">compact_map</a></li>
134
+ <li><a href="#M000767">compact_map</a></li>
135
+ <li><a href="#M000785">count</a></li>
136
+ <li><a href="#M000756">count</a></li>
137
+ <li><a href="#M000741">divide</a></li>
138
+ <li><a href="#M000770">divide</a></li>
139
+ <li><a href="#M000773">duplicates</a></li>
140
+ <li><a href="#M000744">duplicates</a></li>
141
+ <li><a href="#M000786">each_by</a></li>
142
+ <li><a href="#M000757">each_by</a></li>
143
+ <li><a href="#M000780">entropy</a></li>
144
+ <li><a href="#M000751">entropy</a></li>
145
+ <li><a href="#M000740">frequency</a></li>
146
+ <li><a href="#M000769">frequency</a></li>
147
+ <li><a href="#M000749">graph</a></li>
148
+ <li><a href="#M000778">graph</a></li>
149
+ <li><a href="#M000760">group_by</a></li>
150
+ <li><a href="#M000731">group_by</a></li>
151
+ <li><a href="#M000752">ideal_entropy</a></li>
152
+ <li><a href="#M000781">ideal_entropy</a></li>
153
+ <li><a href="#M000771">inject!</a></li>
154
+ <li><a href="#M000742">inject!</a></li>
155
+ <li><a href="#M000754">map_send</a></li>
156
+ <li><a href="#M000783">map_send</a></li>
157
+ <li><a href="#M000766">map_with_index</a></li>
158
+ <li><a href="#M000737">map_with_index</a></li>
159
+ <li><a href="#M000748">mash</a></li>
160
+ <li><a href="#M000777">mash</a></li>
161
+ <li><a href="#M000762">mode</a></li>
162
+ <li><a href="#M000733">mode</a></li>
163
+ <li><a href="#M000750">modulate</a></li>
164
+ <li><a href="#M000779">modulate</a></li>
165
+ <li><a href="#M000774">none?</a></li>
166
+ <li><a href="#M000745">none?</a></li>
167
+ <li><a href="#M000772">nonuniq</a></li>
168
+ <li><a href="#M000743">nonuniq</a></li>
169
+ <li><a href="#M000735">occur</a></li>
170
+ <li><a href="#M000764">occur</a></li>
171
+ <li><a href="#M000729">one?</a></li>
172
+ <li><a href="#M000758">one?</a></li>
173
+ <li><a href="#M000755">probability</a></li>
174
+ <li><a href="#M000784">probability</a></li>
175
+ <li><a href="#M000753">split</a></li>
176
+ <li><a href="#M000782">split</a></li>
177
+ <li><a href="#M000732">sum</a></li>
178
+ <li><a href="#M000761">sum</a></li>
179
+ <li><a href="#M000728">to_h</a></li>
180
+ <li><a href="#M000746">uniq_by</a></li>
181
+ <li><a href="#M000775">uniq_by</a></li>
176
182
  </ul>
177
183
 
178
184
 
@@ -183,7 +189,7 @@
183
189
  <div class="sectiontitle">Public Instance methods</div>
184
190
  <div class="method">
185
191
  <div class="title">
186
- <a name="M000751"></a><b>accumulate</b>()
192
+ <a name="M000776"></a><b>accumulate</b>()
187
193
  </div>
188
194
  <div class="description">
189
195
  <p>
@@ -200,8 +206,8 @@ will return a list of users from all groups.
200
206
  </p>
201
207
  </div>
202
208
  <div class="sourcecode">
203
- <p class="source-link">[ <a href="javascript:toggleSource('M000751_source')" id="l_M000751_source">show source</a> ]</p>
204
- <div id="M000751_source" class="dyn-source">
209
+ <p class="source-link">[ <a href="javascript:toggleSource('M000776_source')" id="l_M000776_source">show source</a> ]</p>
210
+ <div id="M000776_source" class="dyn-source">
205
211
  <pre>
206
212
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/accumulate.rb, line 14</span>
207
213
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">accumulate</span>
@@ -215,7 +221,7 @@ will return a list of users from all groups.
215
221
  </div>
216
222
  <div class="method">
217
223
  <div class="title">
218
- <a name="M000780"></a><b>accumulate</b>()
224
+ <a name="M000747"></a><b>accumulate</b>()
219
225
  </div>
220
226
  <div class="description">
221
227
  <p>
@@ -232,8 +238,8 @@ will return a list of users from all groups.
232
238
  </p>
233
239
  </div>
234
240
  <div class="sourcecode">
235
- <p class="source-link">[ <a href="javascript:toggleSource('M000780_source')" id="l_M000780_source">show source</a> ]</p>
236
- <div id="M000780_source" class="dyn-source">
241
+ <p class="source-link">[ <a href="javascript:toggleSource('M000747_source')" id="l_M000747_source">show source</a> ]</p>
242
+ <div id="M000747_source" class="dyn-source">
237
243
  <pre>
238
244
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/accumulate.rb, line 14</span>
239
245
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">accumulate</span>
@@ -247,11 +253,11 @@ will return a list of users from all groups.
247
253
  </div>
248
254
  <div class="method">
249
255
  <div class="title">
250
- <a name="M000765"></a><b>cluster_by</b>(&amp;b)
256
+ <a name="M000759"></a><b>cluster_by</b>(&amp;b)
251
257
  </div>
252
258
  <div class="description">
253
259
  <p>
254
- Similar to <a href="Enumerable.html#M000737">group_by</a> but returns an
260
+ Similar to <a href="Enumerable.html#M000731">group_by</a> but returns an
255
261
  array of the groups. Returned elements are sorted by block.
256
262
  </p>
257
263
  <pre>
@@ -267,8 +273,8 @@ array of the groups. Returned elements are sorted by block.
267
273
  </pre>
268
274
  </div>
269
275
  <div class="sourcecode">
270
- <p class="source-link">[ <a href="javascript:toggleSource('M000765_source')" id="l_M000765_source">show source</a> ]</p>
271
- <div id="M000765_source" class="dyn-source">
276
+ <p class="source-link">[ <a href="javascript:toggleSource('M000759_source')" id="l_M000759_source">show source</a> ]</p>
277
+ <div id="M000759_source" class="dyn-source">
272
278
  <pre>
273
279
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/cluster_by.rb, line 16</span>
274
280
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cluster_by</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">b</span>)
@@ -280,11 +286,11 @@ array of the groups. Returned elements are sorted by block.
280
286
  </div>
281
287
  <div class="method">
282
288
  <div class="title">
283
- <a name="M000736"></a><b>cluster_by</b>(&amp;b)
289
+ <a name="M000730"></a><b>cluster_by</b>(&amp;b)
284
290
  </div>
285
291
  <div class="description">
286
292
  <p>
287
- Similar to <a href="Enumerable.html#M000737">group_by</a> but returns an
293
+ Similar to <a href="Enumerable.html#M000731">group_by</a> but returns an
288
294
  array of the groups. Returned elements are sorted by block.
289
295
  </p>
290
296
  <pre>
@@ -300,8 +306,8 @@ array of the groups. Returned elements are sorted by block.
300
306
  </pre>
301
307
  </div>
302
308
  <div class="sourcecode">
303
- <p class="source-link">[ <a href="javascript:toggleSource('M000736_source')" id="l_M000736_source">show source</a> ]</p>
304
- <div id="M000736_source" class="dyn-source">
309
+ <p class="source-link">[ <a href="javascript:toggleSource('M000730_source')" id="l_M000730_source">show source</a> ]</p>
310
+ <div id="M000730_source" class="dyn-source">
305
311
  <pre>
306
312
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/cluster_by.rb, line 16</span>
307
313
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cluster_by</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">b</span>)
@@ -313,7 +319,7 @@ array of the groups. Returned elements are sorted by block.
313
319
  </div>
314
320
  <div class="method">
315
321
  <div class="title">
316
- <a name="M000741"></a><b>collect_with_index</b>() {|self[i], i| ...}
322
+ <a name="M000765"></a><b>collect_with_index</b>() {|self[i], i| ...}
317
323
  </div>
318
324
  <div class="description">
319
325
  <p>
@@ -326,14 +332,9 @@ Same as collect but with an iteration counter.
326
332
  CREDIT: Gavin Sinclair
327
333
  </pre>
328
334
  </div>
329
- <div class="aka">
330
- This method is also aliased as
331
- <a href="Enumerable.html#M000742">map_with_index</a>
332
- <a href="Enumerable.html#M000771">map_with_index</a>
333
- </div>
334
335
  <div class="sourcecode">
335
- <p class="source-link">[ <a href="javascript:toggleSource('M000741_source')" id="l_M000741_source">show source</a> ]</p>
336
- <div id="M000741_source" class="dyn-source">
336
+ <p class="source-link">[ <a href="javascript:toggleSource('M000765_source')" id="l_M000765_source">show source</a> ]</p>
337
+ <div id="M000765_source" class="dyn-source">
337
338
  <pre>
338
339
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/collect.rb, line 10</span>
339
340
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">collect_with_index</span>
@@ -349,7 +350,7 @@ Same as collect but with an iteration counter.
349
350
  </div>
350
351
  <div class="method">
351
352
  <div class="title">
352
- <a name="M000770"></a><b>collect_with_index</b>() {|self[i], i| ...}
353
+ <a name="M000736"></a><b>collect_with_index</b>() {|self[i], i| ...}
353
354
  </div>
354
355
  <div class="description">
355
356
  <p>
@@ -362,9 +363,14 @@ Same as collect but with an iteration counter.
362
363
  CREDIT: Gavin Sinclair
363
364
  </pre>
364
365
  </div>
366
+ <div class="aka">
367
+ This method is also aliased as
368
+ <a href="Enumerable.html#M000737">map_with_index</a>
369
+ <a href="Enumerable.html#M000766">map_with_index</a>
370
+ </div>
365
371
  <div class="sourcecode">
366
- <p class="source-link">[ <a href="javascript:toggleSource('M000770_source')" id="l_M000770_source">show source</a> ]</p>
367
- <div id="M000770_source" class="dyn-source">
372
+ <p class="source-link">[ <a href="javascript:toggleSource('M000736_source')" id="l_M000736_source">show source</a> ]</p>
373
+ <div id="M000736_source" class="dyn-source">
368
374
  <pre>
369
375
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/collect.rb, line 10</span>
370
376
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">collect_with_index</span>
@@ -380,7 +386,7 @@ Same as collect but with an iteration counter.
380
386
  </div>
381
387
  <div class="method">
382
388
  <div class="title">
383
- <a name="M000761"></a><b>commonality</b>( &amp;block )
389
+ <a name="M000763"></a><b>commonality</b>( &amp;block )
384
390
  </div>
385
391
  <div class="description">
386
392
  <p>
@@ -401,10 +407,10 @@ value for Object#hash and if obj1 == obj2.
401
407
  </pre>
402
408
  </div>
403
409
  <div class="sourcecode">
404
- <p class="source-link">[ <a href="javascript:toggleSource('M000761_source')" id="l_M000761_source">show source</a> ]</p>
405
- <div id="M000761_source" class="dyn-source">
410
+ <p class="source-link">[ <a href="javascript:toggleSource('M000763_source')" id="l_M000763_source">show source</a> ]</p>
411
+ <div id="M000763_source" class="dyn-source">
406
412
  <pre>
407
- <span class="ruby-comment cmt"># File lib/core/facets/enumerable/probability.rb, line 94</span>
413
+ <span class="ruby-comment cmt"># File lib/core/facets/enumerable/commonality.rb, line 17</span>
408
414
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">commonality</span>( <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span> )
409
415
  <span class="ruby-identifier">had_no_block</span> = <span class="ruby-operator">!</span><span class="ruby-identifier">block</span>
410
416
  <span class="ruby-identifier">block</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">lambda</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">item</span><span class="ruby-operator">|</span> <span class="ruby-identifier">item</span> }
@@ -425,7 +431,7 @@ value for Object#hash and if obj1 == obj2.
425
431
  </div>
426
432
  <div class="method">
427
433
  <div class="title">
428
- <a name="M000790"></a><b>commonality</b>( &amp;block )
434
+ <a name="M000734"></a><b>commonality</b>( &amp;block )
429
435
  </div>
430
436
  <div class="description">
431
437
  <p>
@@ -446,10 +452,10 @@ value for Object#hash and if obj1 == obj2.
446
452
  </pre>
447
453
  </div>
448
454
  <div class="sourcecode">
449
- <p class="source-link">[ <a href="javascript:toggleSource('M000790_source')" id="l_M000790_source">show source</a> ]</p>
450
- <div id="M000790_source" class="dyn-source">
455
+ <p class="source-link">[ <a href="javascript:toggleSource('M000734_source')" id="l_M000734_source">show source</a> ]</p>
456
+ <div id="M000734_source" class="dyn-source">
451
457
  <pre>
452
- <span class="ruby-comment cmt"># File lib/core/facets/enumerable/probability.rb, line 94</span>
458
+ <span class="ruby-comment cmt"># File lib/core/facets/enumerable/commonality.rb, line 17</span>
453
459
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">commonality</span>( <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span> )
454
460
  <span class="ruby-identifier">had_no_block</span> = <span class="ruby-operator">!</span><span class="ruby-identifier">block</span>
455
461
  <span class="ruby-identifier">block</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">lambda</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">item</span><span class="ruby-operator">|</span> <span class="ruby-identifier">item</span> }
@@ -470,27 +476,27 @@ value for Object#hash and if obj1 == obj2.
470
476
  </div>
471
477
  <div class="method">
472
478
  <div class="title">
473
- <a name="M000773"></a><b>compact_collect</b>(trash=nil, &amp;block)
479
+ <a name="M000768"></a><b>compact_collect</b>(trash=nil, &amp;block)
474
480
  </div>
475
481
  <div class="description">
476
482
  <p>
477
- Alias for <a href="Enumerable.html#M000743">compact_map</a>
483
+ Alias for <a href="Enumerable.html#M000738">compact_map</a>
478
484
  </p>
479
485
  </div>
480
486
  </div>
481
487
  <div class="method">
482
488
  <div class="title">
483
- <a name="M000744"></a><b>compact_collect</b>(trash=nil, &amp;block)
489
+ <a name="M000739"></a><b>compact_collect</b>(trash=nil, &amp;block)
484
490
  </div>
485
491
  <div class="description">
486
492
  <p>
487
- Alias for <a href="Enumerable.html#M000743">compact_map</a>
493
+ Alias for <a href="Enumerable.html#M000738">compact_map</a>
488
494
  </p>
489
495
  </div>
490
496
  </div>
491
497
  <div class="method">
492
498
  <div class="title">
493
- <a name="M000743"></a><b>compact_map</b>(trash=nil) {|*a| ...}
499
+ <a name="M000738"></a><b>compact_map</b>(trash=nil) {|*a| ...}
494
500
  </div>
495
501
  <div class="description">
496
502
  <p>
@@ -517,12 +523,12 @@ NOTE: Perhaps nicer to have as added functionality for compact.
517
523
  </div>
518
524
  <div class="aka">
519
525
  This method is also aliased as
520
- <a href="Enumerable.html#M000744">compact_collect</a>
521
- <a href="Enumerable.html#M000773">compact_collect</a>
526
+ <a href="Enumerable.html#M000739">compact_collect</a>
527
+ <a href="Enumerable.html#M000768">compact_collect</a>
522
528
  </div>
523
529
  <div class="sourcecode">
524
- <p class="source-link">[ <a href="javascript:toggleSource('M000743_source')" id="l_M000743_source">show source</a> ]</p>
525
- <div id="M000743_source" class="dyn-source">
530
+ <p class="source-link">[ <a href="javascript:toggleSource('M000738_source')" id="l_M000738_source">show source</a> ]</p>
531
+ <div id="M000738_source" class="dyn-source">
526
532
  <pre>
527
533
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/collect.rb, line 37</span>
528
534
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">compact_map</span>(<span class="ruby-identifier">trash</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -545,7 +551,7 @@ NOTE: Perhaps nicer to have as added functionality for compact.
545
551
  </div>
546
552
  <div class="method">
547
553
  <div class="title">
548
- <a name="M000772"></a><b>compact_map</b>(trash=nil) {|*a| ...}
554
+ <a name="M000767"></a><b>compact_map</b>(trash=nil) {|*a| ...}
549
555
  </div>
550
556
  <div class="description">
551
557
  <p>
@@ -571,8 +577,8 @@ NOTE: Perhaps nicer to have as added functionality for compact.
571
577
  </pre>
572
578
  </div>
573
579
  <div class="sourcecode">
574
- <p class="source-link">[ <a href="javascript:toggleSource('M000772_source')" id="l_M000772_source">show source</a> ]</p>
575
- <div id="M000772_source" class="dyn-source">
580
+ <p class="source-link">[ <a href="javascript:toggleSource('M000767_source')" id="l_M000767_source">show source</a> ]</p>
581
+ <div id="M000767_source" class="dyn-source">
576
582
  <pre>
577
583
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/collect.rb, line 37</span>
578
584
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">compact_map</span>(<span class="ruby-identifier">trash</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -595,7 +601,7 @@ NOTE: Perhaps nicer to have as added functionality for compact.
595
601
  </div>
596
602
  <div class="method">
597
603
  <div class="title">
598
- <a name="M000791"></a><b>count</b>(*c)
604
+ <a name="M000785"></a><b>count</b>(*c)
599
605
  </div>
600
606
  <div class="description">
601
607
  <p>
@@ -617,8 +623,8 @@ Count can also handle multiple-valued blocks.
617
623
  </pre>
618
624
  </div>
619
625
  <div class="sourcecode">
620
- <p class="source-link">[ <a href="javascript:toggleSource('M000791_source')" id="l_M000791_source">show source</a> ]</p>
621
- <div id="M000791_source" class="dyn-source">
626
+ <p class="source-link">[ <a href="javascript:toggleSource('M000785_source')" id="l_M000785_source">show source</a> ]</p>
627
+ <div id="M000785_source" class="dyn-source">
622
628
  <pre>
623
629
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/count.rb, line 19</span>
624
630
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">count</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">c</span>)
@@ -630,7 +636,7 @@ Count can also handle multiple-valued blocks.
630
636
  </div>
631
637
  <div class="method">
632
638
  <div class="title">
633
- <a name="M000762"></a><b>count</b>(*c)
639
+ <a name="M000756"></a><b>count</b>(*c)
634
640
  </div>
635
641
  <div class="description">
636
642
  <p>
@@ -652,8 +658,8 @@ Count can also handle multiple-valued blocks.
652
658
  </pre>
653
659
  </div>
654
660
  <div class="sourcecode">
655
- <p class="source-link">[ <a href="javascript:toggleSource('M000762_source')" id="l_M000762_source">show source</a> ]</p>
656
- <div id="M000762_source" class="dyn-source">
661
+ <p class="source-link">[ <a href="javascript:toggleSource('M000756_source')" id="l_M000756_source">show source</a> ]</p>
662
+ <div id="M000756_source" class="dyn-source">
657
663
  <pre>
658
664
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/count.rb, line 19</span>
659
665
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">count</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">c</span>)
@@ -665,7 +671,7 @@ Count can also handle multiple-valued blocks.
665
671
  </div>
666
672
  <div class="method">
667
673
  <div class="title">
668
- <a name="M000774"></a><b>divide</b>(pattern)
674
+ <a name="M000741"></a><b>divide</b>(pattern)
669
675
  </div>
670
676
  <div class="description">
671
677
  <p>
@@ -679,8 +685,8 @@ Divide on matching pattern.
679
685
  </pre>
680
686
  </div>
681
687
  <div class="sourcecode">
682
- <p class="source-link">[ <a href="javascript:toggleSource('M000774_source')" id="l_M000774_source">show source</a> ]</p>
683
- <div id="M000774_source" class="dyn-source">
688
+ <p class="source-link">[ <a href="javascript:toggleSource('M000741_source')" id="l_M000741_source">show source</a> ]</p>
689
+ <div id="M000741_source" class="dyn-source">
684
690
  <pre>
685
691
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/divide.rb, line 10</span>
686
692
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">divide</span>(<span class="ruby-identifier">pattern</span>)
@@ -697,7 +703,7 @@ Divide on matching pattern.
697
703
  </div>
698
704
  <div class="method">
699
705
  <div class="title">
700
- <a name="M000745"></a><b>divide</b>(pattern)
706
+ <a name="M000770"></a><b>divide</b>(pattern)
701
707
  </div>
702
708
  <div class="description">
703
709
  <p>
@@ -711,8 +717,8 @@ Divide on matching pattern.
711
717
  </pre>
712
718
  </div>
713
719
  <div class="sourcecode">
714
- <p class="source-link">[ <a href="javascript:toggleSource('M000745_source')" id="l_M000745_source">show source</a> ]</p>
715
- <div id="M000745_source" class="dyn-source">
720
+ <p class="source-link">[ <a href="javascript:toggleSource('M000770_source')" id="l_M000770_source">show source</a> ]</p>
721
+ <div id="M000770_source" class="dyn-source">
716
722
  <pre>
717
723
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/divide.rb, line 10</span>
718
724
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">divide</span>(<span class="ruby-identifier">pattern</span>)
@@ -729,27 +735,27 @@ Divide on matching pattern.
729
735
  </div>
730
736
  <div class="method">
731
737
  <div class="title">
732
- <a name="M000748"></a><b>duplicates</b>()
738
+ <a name="M000773"></a><b>duplicates</b>()
733
739
  </div>
734
740
  <div class="description">
735
741
  <p>
736
- Alias for <a href="Enumerable.html#M000747">nonuniq</a>
742
+ Alias for <a href="Enumerable.html#M000743">nonuniq</a>
737
743
  </p>
738
744
  </div>
739
745
  </div>
740
746
  <div class="method">
741
747
  <div class="title">
742
- <a name="M000777"></a><b>duplicates</b>()
748
+ <a name="M000744"></a><b>duplicates</b>()
743
749
  </div>
744
750
  <div class="description">
745
751
  <p>
746
- Alias for <a href="Enumerable.html#M000747">nonuniq</a>
752
+ Alias for <a href="Enumerable.html#M000743">nonuniq</a>
747
753
  </p>
748
754
  </div>
749
755
  </div>
750
756
  <div class="method">
751
757
  <div class="title">
752
- <a name="M000792"></a><b>each_by</b>(steps=nil, &amp;block)
758
+ <a name="M000786"></a><b>each_by</b>(steps=nil, &amp;block)
753
759
  </div>
754
760
  <div class="description">
755
761
  <p>
@@ -774,8 +780,8 @@ block. If each_slice ever suppots this this method can be deprecated.
774
780
  </pre>
775
781
  </div>
776
782
  <div class="sourcecode">
777
- <p class="source-link">[ <a href="javascript:toggleSource('M000792_source')" id="l_M000792_source">show source</a> ]</p>
778
- <div id="M000792_source" class="dyn-source">
783
+ <p class="source-link">[ <a href="javascript:toggleSource('M000786_source')" id="l_M000786_source">show source</a> ]</p>
784
+ <div id="M000786_source" class="dyn-source">
779
785
  <pre>
780
786
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/each_by.rb, line 22</span>
781
787
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_by</span>(<span class="ruby-identifier">steps</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -793,7 +799,7 @@ block. If each_slice ever suppots this this method can be deprecated.
793
799
  </div>
794
800
  <div class="method">
795
801
  <div class="title">
796
- <a name="M000763"></a><b>each_by</b>(steps=nil, &amp;block)
802
+ <a name="M000757"></a><b>each_by</b>(steps=nil, &amp;block)
797
803
  </div>
798
804
  <div class="description">
799
805
  <p>
@@ -818,8 +824,8 @@ block. If each_slice ever suppots this this method can be deprecated.
818
824
  </pre>
819
825
  </div>
820
826
  <div class="sourcecode">
821
- <p class="source-link">[ <a href="javascript:toggleSource('M000763_source')" id="l_M000763_source">show source</a> ]</p>
822
- <div id="M000763_source" class="dyn-source">
827
+ <p class="source-link">[ <a href="javascript:toggleSource('M000757_source')" id="l_M000757_source">show source</a> ]</p>
828
+ <div id="M000757_source" class="dyn-source">
823
829
  <pre>
824
830
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/each_by.rb, line 22</span>
825
831
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_by</span>(<span class="ruby-identifier">steps</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -837,13 +843,13 @@ block. If each_slice ever suppots this this method can be deprecated.
837
843
  </div>
838
844
  <div class="method">
839
845
  <div class="title">
840
- <a name="M000787"></a><b>entropy</b>()
846
+ <a name="M000780"></a><b>entropy</b>()
841
847
  </div>
842
848
  <div class="description">
843
849
  <p>
844
- Shannon&#8216;s <a href="Enumerable.html#M000758">entropy</a> for an array
850
+ Shannon&#8216;s <a href="Enumerable.html#M000751">entropy</a> for an array
845
851
  - returns the average bits per symbol required to encode the array. Lower
846
- values mean less &quot;<a href="Enumerable.html#M000758">entropy</a>&quot;
852
+ values mean less &quot;<a href="Enumerable.html#M000751">entropy</a>&quot;
847
853
  - i.e. less unique information in the array.
848
854
  </p>
849
855
  <pre>
@@ -853,10 +859,10 @@ values mean less &quot;<a href="Enumerable.html#M000758">entropy</a>&quot;
853
859
  </pre>
854
860
  </div>
855
861
  <div class="sourcecode">
856
- <p class="source-link">[ <a href="javascript:toggleSource('M000787_source')" id="l_M000787_source">show source</a> ]</p>
857
- <div id="M000787_source" class="dyn-source">
862
+ <p class="source-link">[ <a href="javascript:toggleSource('M000780_source')" id="l_M000780_source">show source</a> ]</p>
863
+ <div id="M000780_source" class="dyn-source">
858
864
  <pre>
859
- <span class="ruby-comment cmt"># File lib/core/facets/enumerable/probability.rb, line 44</span>
865
+ <span class="ruby-comment cmt"># File lib/core/facets/enumerable/entropy.rb, line 14</span>
860
866
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">entropy</span>
861
867
  <span class="ruby-identifier">arr</span> = <span class="ruby-identifier">to_a</span>
862
868
  <span class="ruby-identifier">probHash</span> = <span class="ruby-identifier">arr</span>.<span class="ruby-identifier">probability</span>
@@ -872,13 +878,13 @@ values mean less &quot;<a href="Enumerable.html#M000758">entropy</a>&quot;
872
878
  </div>
873
879
  <div class="method">
874
880
  <div class="title">
875
- <a name="M000758"></a><b>entropy</b>()
881
+ <a name="M000751"></a><b>entropy</b>()
876
882
  </div>
877
883
  <div class="description">
878
884
  <p>
879
- Shannon&#8216;s <a href="Enumerable.html#M000758">entropy</a> for an array
885
+ Shannon&#8216;s <a href="Enumerable.html#M000751">entropy</a> for an array
880
886
  - returns the average bits per symbol required to encode the array. Lower
881
- values mean less &quot;<a href="Enumerable.html#M000758">entropy</a>&quot;
887
+ values mean less &quot;<a href="Enumerable.html#M000751">entropy</a>&quot;
882
888
  - i.e. less unique information in the array.
883
889
  </p>
884
890
  <pre>
@@ -888,10 +894,10 @@ values mean less &quot;<a href="Enumerable.html#M000758">entropy</a>&quot;
888
894
  </pre>
889
895
  </div>
890
896
  <div class="sourcecode">
891
- <p class="source-link">[ <a href="javascript:toggleSource('M000758_source')" id="l_M000758_source">show source</a> ]</p>
892
- <div id="M000758_source" class="dyn-source">
897
+ <p class="source-link">[ <a href="javascript:toggleSource('M000751_source')" id="l_M000751_source">show source</a> ]</p>
898
+ <div id="M000751_source" class="dyn-source">
893
899
  <pre>
894
- <span class="ruby-comment cmt"># File lib/core/facets/enumerable/probability.rb, line 44</span>
900
+ <span class="ruby-comment cmt"># File lib/core/facets/enumerable/entropy.rb, line 14</span>
895
901
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">entropy</span>
896
902
  <span class="ruby-identifier">arr</span> = <span class="ruby-identifier">to_a</span>
897
903
  <span class="ruby-identifier">probHash</span> = <span class="ruby-identifier">arr</span>.<span class="ruby-identifier">probability</span>
@@ -907,22 +913,22 @@ values mean less &quot;<a href="Enumerable.html#M000758">entropy</a>&quot;
907
913
  </div>
908
914
  <div class="method">
909
915
  <div class="title">
910
- <a name="M000789"></a><b>frequency</b>()
916
+ <a name="M000740"></a><b>frequency</b>()
911
917
  </div>
912
918
  <div class="description">
913
919
  <p>
914
920
  Generates a hash mapping each unique symbol in the array to the absolute <a
915
- href="Enumerable.html#M000760">frequency</a> it appears.
921
+ href="Enumerable.html#M000740">frequency</a> it appears.
916
922
  </p>
917
923
  <pre>
918
924
  CREDIT: Brian Schröder
919
925
  </pre>
920
926
  </div>
921
927
  <div class="sourcecode">
922
- <p class="source-link">[ <a href="javascript:toggleSource('M000789_source')" id="l_M000789_source">show source</a> ]</p>
923
- <div id="M000789_source" class="dyn-source">
928
+ <p class="source-link">[ <a href="javascript:toggleSource('M000740_source')" id="l_M000740_source">show source</a> ]</p>
929
+ <div id="M000740_source" class="dyn-source">
924
930
  <pre>
925
- <span class="ruby-comment cmt"># File lib/core/facets/enumerable/probability.rb, line 71</span>
931
+ <span class="ruby-comment cmt"># File lib/core/facets/enumerable/frequency.rb, line 8</span>
926
932
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">frequency</span>
927
933
  <span class="ruby-comment cmt">#probs = Hash.new(0)</span>
928
934
  <span class="ruby-comment cmt">#each do |e|</span>
@@ -937,22 +943,22 @@ href="Enumerable.html#M000760">frequency</a> it appears.
937
943
  </div>
938
944
  <div class="method">
939
945
  <div class="title">
940
- <a name="M000760"></a><b>frequency</b>()
946
+ <a name="M000769"></a><b>frequency</b>()
941
947
  </div>
942
948
  <div class="description">
943
949
  <p>
944
950
  Generates a hash mapping each unique symbol in the array to the absolute <a
945
- href="Enumerable.html#M000760">frequency</a> it appears.
951
+ href="Enumerable.html#M000740">frequency</a> it appears.
946
952
  </p>
947
953
  <pre>
948
954
  CREDIT: Brian Schröder
949
955
  </pre>
950
956
  </div>
951
957
  <div class="sourcecode">
952
- <p class="source-link">[ <a href="javascript:toggleSource('M000760_source')" id="l_M000760_source">show source</a> ]</p>
953
- <div id="M000760_source" class="dyn-source">
958
+ <p class="source-link">[ <a href="javascript:toggleSource('M000769_source')" id="l_M000769_source">show source</a> ]</p>
959
+ <div id="M000769_source" class="dyn-source">
954
960
  <pre>
955
- <span class="ruby-comment cmt"># File lib/core/facets/enumerable/probability.rb, line 71</span>
961
+ <span class="ruby-comment cmt"># File lib/core/facets/enumerable/frequency.rb, line 8</span>
956
962
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">frequency</span>
957
963
  <span class="ruby-comment cmt">#probs = Hash.new(0)</span>
958
964
  <span class="ruby-comment cmt">#each do |e|</span>
@@ -967,31 +973,31 @@ href="Enumerable.html#M000760">frequency</a> it appears.
967
973
  </div>
968
974
  <div class="method">
969
975
  <div class="title">
970
- <a name="M000753"></a><b>graph</b>(&amp;yld)
976
+ <a name="M000749"></a><b>graph</b>(&amp;yld)
971
977
  </div>
972
978
  <div class="description">
973
979
  <p>
974
- Alias for <a href="Enumerable.html#M000752">mash</a>
980
+ Alias for <a href="Enumerable.html#M000748">mash</a>
975
981
  </p>
976
982
  </div>
977
983
  </div>
978
984
  <div class="method">
979
985
  <div class="title">
980
- <a name="M000782"></a><b>graph</b>(&amp;yld)
986
+ <a name="M000778"></a><b>graph</b>(&amp;yld)
981
987
  </div>
982
988
  <div class="description">
983
989
  <p>
984
- Alias for <a href="Enumerable.html#M000752">mash</a>
990
+ Alias for <a href="Enumerable.html#M000748">mash</a>
985
991
  </p>
986
992
  </div>
987
993
  </div>
988
994
  <div class="method">
989
995
  <div class="title">
990
- <a name="M000737"></a><b>group_by</b>( {|| ...}
996
+ <a name="M000760"></a><b>group_by</b>( {|| ...}
991
997
  </div>
992
998
  <div class="description">
993
999
  <p>
994
- <a href="Enumerable.html#M000737">group_by</a> is used to group items in a
1000
+ <a href="Enumerable.html#M000731">group_by</a> is used to group items in a
995
1001
  collection by something they have in common. The common factor is the key
996
1002
  in the resulting hash, the array of like elements is the value.
997
1003
  </p>
@@ -1006,8 +1012,8 @@ in the resulting hash, the array of like elements is the value.
1006
1012
  </pre>
1007
1013
  </div>
1008
1014
  <div class="sourcecode">
1009
- <p class="source-link">[ <a href="javascript:toggleSource('M000737_source')" id="l_M000737_source">show source</a> ]</p>
1010
- <div id="M000737_source" class="dyn-source">
1015
+ <p class="source-link">[ <a href="javascript:toggleSource('M000760_source')" id="l_M000760_source">show source</a> ]</p>
1016
+ <div id="M000760_source" class="dyn-source">
1011
1017
  <pre>
1012
1018
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/group_by.rb, line 17</span>
1013
1019
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">group_by</span> <span class="ruby-comment cmt">#:yield:</span>
@@ -1022,11 +1028,11 @@ in the resulting hash, the array of like elements is the value.
1022
1028
  </div>
1023
1029
  <div class="method">
1024
1030
  <div class="title">
1025
- <a name="M000766"></a><b>group_by</b>( {|| ...}
1031
+ <a name="M000731"></a><b>group_by</b>( {|| ...}
1026
1032
  </div>
1027
1033
  <div class="description">
1028
1034
  <p>
1029
- <a href="Enumerable.html#M000737">group_by</a> is used to group items in a
1035
+ <a href="Enumerable.html#M000731">group_by</a> is used to group items in a
1030
1036
  collection by something they have in common. The common factor is the key
1031
1037
  in the resulting hash, the array of like elements is the value.
1032
1038
  </p>
@@ -1041,8 +1047,8 @@ in the resulting hash, the array of like elements is the value.
1041
1047
  </pre>
1042
1048
  </div>
1043
1049
  <div class="sourcecode">
1044
- <p class="source-link">[ <a href="javascript:toggleSource('M000766_source')" id="l_M000766_source">show source</a> ]</p>
1045
- <div id="M000766_source" class="dyn-source">
1050
+ <p class="source-link">[ <a href="javascript:toggleSource('M000731_source')" id="l_M000731_source">show source</a> ]</p>
1051
+ <div id="M000731_source" class="dyn-source">
1046
1052
  <pre>
1047
1053
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/group_by.rb, line 17</span>
1048
1054
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">group_by</span> <span class="ruby-comment cmt">#:yield:</span>
@@ -1057,12 +1063,12 @@ in the resulting hash, the array of like elements is the value.
1057
1063
  </div>
1058
1064
  <div class="method">
1059
1065
  <div class="title">
1060
- <a name="M000759"></a><b>ideal_entropy</b>()
1066
+ <a name="M000752"></a><b>ideal_entropy</b>()
1061
1067
  </div>
1062
1068
  <div class="description">
1063
1069
  <p>
1064
1070
  Returns the maximum possible Shannon <a
1065
- href="Enumerable.html#M000758">entropy</a> of the array with given size
1071
+ href="Enumerable.html#M000751">entropy</a> of the array with given size
1066
1072
  assuming that it is an &quot;order-0&quot; source (each element is selected
1067
1073
  independently of the next).
1068
1074
  </p>
@@ -1071,10 +1077,10 @@ independently of the next).
1071
1077
  </pre>
1072
1078
  </div>
1073
1079
  <div class="sourcecode">
1074
- <p class="source-link">[ <a href="javascript:toggleSource('M000759_source')" id="l_M000759_source">show source</a> ]</p>
1075
- <div id="M000759_source" class="dyn-source">
1080
+ <p class="source-link">[ <a href="javascript:toggleSource('M000752_source')" id="l_M000752_source">show source</a> ]</p>
1081
+ <div id="M000752_source" class="dyn-source">
1076
1082
  <pre>
1077
- <span class="ruby-comment cmt"># File lib/core/facets/enumerable/probability.rb, line 60</span>
1083
+ <span class="ruby-comment cmt"># File lib/core/facets/enumerable/entropy.rb, line 30</span>
1078
1084
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ideal_entropy</span>
1079
1085
  <span class="ruby-identifier">arr</span> = <span class="ruby-identifier">to_a</span>
1080
1086
  <span class="ruby-identifier">unitProb</span> = <span class="ruby-value">1.0</span>.<span class="ruby-identifier">to_f</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">arr</span>.<span class="ruby-identifier">size</span>.<span class="ruby-identifier">to_f</span>
@@ -1086,12 +1092,12 @@ independently of the next).
1086
1092
  </div>
1087
1093
  <div class="method">
1088
1094
  <div class="title">
1089
- <a name="M000788"></a><b>ideal_entropy</b>()
1095
+ <a name="M000781"></a><b>ideal_entropy</b>()
1090
1096
  </div>
1091
1097
  <div class="description">
1092
1098
  <p>
1093
1099
  Returns the maximum possible Shannon <a
1094
- href="Enumerable.html#M000758">entropy</a> of the array with given size
1100
+ href="Enumerable.html#M000751">entropy</a> of the array with given size
1095
1101
  assuming that it is an &quot;order-0&quot; source (each element is selected
1096
1102
  independently of the next).
1097
1103
  </p>
@@ -1100,10 +1106,10 @@ independently of the next).
1100
1106
  </pre>
1101
1107
  </div>
1102
1108
  <div class="sourcecode">
1103
- <p class="source-link">[ <a href="javascript:toggleSource('M000788_source')" id="l_M000788_source">show source</a> ]</p>
1104
- <div id="M000788_source" class="dyn-source">
1109
+ <p class="source-link">[ <a href="javascript:toggleSource('M000781_source')" id="l_M000781_source">show source</a> ]</p>
1110
+ <div id="M000781_source" class="dyn-source">
1105
1111
  <pre>
1106
- <span class="ruby-comment cmt"># File lib/core/facets/enumerable/probability.rb, line 60</span>
1112
+ <span class="ruby-comment cmt"># File lib/core/facets/enumerable/entropy.rb, line 30</span>
1107
1113
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ideal_entropy</span>
1108
1114
  <span class="ruby-identifier">arr</span> = <span class="ruby-identifier">to_a</span>
1109
1115
  <span class="ruby-identifier">unitProb</span> = <span class="ruby-value">1.0</span>.<span class="ruby-identifier">to_f</span> <span class="ruby-operator">/</span> <span class="ruby-identifier">arr</span>.<span class="ruby-identifier">size</span>.<span class="ruby-identifier">to_f</span>
@@ -1115,7 +1121,7 @@ independently of the next).
1115
1121
  </div>
1116
1122
  <div class="method">
1117
1123
  <div class="title">
1118
- <a name="M000746"></a><b>inject!</b>(s) {|k, i| ...}
1124
+ <a name="M000771"></a><b>inject!</b>(s) {|k, i| ...}
1119
1125
  </div>
1120
1126
  <div class="description">
1121
1127
  <p>
@@ -1123,7 +1129,7 @@ A small variation of Inject that save one from having to return the
1123
1129
  aggregating or memo argument.
1124
1130
  </p>
1125
1131
  <p>
1126
- Say you want to <a href="Enumerable.html#M000762">count</a> letters.
1132
+ Say you want to <a href="Enumerable.html#M000756">count</a> letters.
1127
1133
  </p>
1128
1134
  <pre>
1129
1135
  some_text.inject!(Hash.new(0)) {|h,l| h[l] += 1}
@@ -1139,8 +1145,8 @@ vs
1139
1145
  </pre>
1140
1146
  </div>
1141
1147
  <div class="sourcecode">
1142
- <p class="source-link">[ <a href="javascript:toggleSource('M000746_source')" id="l_M000746_source">show source</a> ]</p>
1143
- <div id="M000746_source" class="dyn-source">
1148
+ <p class="source-link">[ <a href="javascript:toggleSource('M000771_source')" id="l_M000771_source">show source</a> ]</p>
1149
+ <div id="M000771_source" class="dyn-source">
1144
1150
  <pre>
1145
1151
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/inject.rb, line 17</span>
1146
1152
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inject!</span>(<span class="ruby-identifier">s</span>)
@@ -1154,7 +1160,7 @@ vs
1154
1160
  </div>
1155
1161
  <div class="method">
1156
1162
  <div class="title">
1157
- <a name="M000775"></a><b>inject!</b>(s) {|k, i| ...}
1163
+ <a name="M000742"></a><b>inject!</b>(s) {|k, i| ...}
1158
1164
  </div>
1159
1165
  <div class="description">
1160
1166
  <p>
@@ -1162,7 +1168,7 @@ A small variation of Inject that save one from having to return the
1162
1168
  aggregating or memo argument.
1163
1169
  </p>
1164
1170
  <p>
1165
- Say you want to <a href="Enumerable.html#M000762">count</a> letters.
1171
+ Say you want to <a href="Enumerable.html#M000756">count</a> letters.
1166
1172
  </p>
1167
1173
  <pre>
1168
1174
  some_text.inject!(Hash.new(0)) {|h,l| h[l] += 1}
@@ -1178,8 +1184,8 @@ vs
1178
1184
  </pre>
1179
1185
  </div>
1180
1186
  <div class="sourcecode">
1181
- <p class="source-link">[ <a href="javascript:toggleSource('M000775_source')" id="l_M000775_source">show source</a> ]</p>
1182
- <div id="M000775_source" class="dyn-source">
1187
+ <p class="source-link">[ <a href="javascript:toggleSource('M000742_source')" id="l_M000742_source">show source</a> ]</p>
1188
+ <div id="M000742_source" class="dyn-source">
1183
1189
  <pre>
1184
1190
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/inject.rb, line 17</span>
1185
1191
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inject!</span>(<span class="ruby-identifier">s</span>)
@@ -1193,7 +1199,7 @@ vs
1193
1199
  </div>
1194
1200
  <div class="method">
1195
1201
  <div class="title">
1196
- <a name="M000785"></a><b>map_send</b>(meth, *args, &amp;block)
1202
+ <a name="M000754"></a><b>map_send</b>(meth, *args, &amp;block)
1197
1203
  </div>
1198
1204
  <div class="description">
1199
1205
  <p>
@@ -1204,8 +1210,8 @@ Send a message to each element and collect the result.
1204
1210
  </pre>
1205
1211
  </div>
1206
1212
  <div class="sourcecode">
1207
- <p class="source-link">[ <a href="javascript:toggleSource('M000785_source')" id="l_M000785_source">show source</a> ]</p>
1208
- <div id="M000785_source" class="dyn-source">
1213
+ <p class="source-link">[ <a href="javascript:toggleSource('M000754_source')" id="l_M000754_source">show source</a> ]</p>
1214
+ <div id="M000754_source" class="dyn-source">
1209
1215
  <pre>
1210
1216
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/map_send.rb, line 7</span>
1211
1217
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">map_send</span>(<span class="ruby-identifier">meth</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -1217,7 +1223,7 @@ Send a message to each element and collect the result.
1217
1223
  </div>
1218
1224
  <div class="method">
1219
1225
  <div class="title">
1220
- <a name="M000756"></a><b>map_send</b>(meth, *args, &amp;block)
1226
+ <a name="M000783"></a><b>map_send</b>(meth, *args, &amp;block)
1221
1227
  </div>
1222
1228
  <div class="description">
1223
1229
  <p>
@@ -1228,8 +1234,8 @@ Send a message to each element and collect the result.
1228
1234
  </pre>
1229
1235
  </div>
1230
1236
  <div class="sourcecode">
1231
- <p class="source-link">[ <a href="javascript:toggleSource('M000756_source')" id="l_M000756_source">show source</a> ]</p>
1232
- <div id="M000756_source" class="dyn-source">
1237
+ <p class="source-link">[ <a href="javascript:toggleSource('M000783_source')" id="l_M000783_source">show source</a> ]</p>
1238
+ <div id="M000783_source" class="dyn-source">
1233
1239
  <pre>
1234
1240
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/map_send.rb, line 7</span>
1235
1241
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">map_send</span>(<span class="ruby-identifier">meth</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -1241,27 +1247,27 @@ Send a message to each element and collect the result.
1241
1247
  </div>
1242
1248
  <div class="method">
1243
1249
  <div class="title">
1244
- <a name="M000771"></a><b>map_with_index</b>()
1250
+ <a name="M000766"></a><b>map_with_index</b>()
1245
1251
  </div>
1246
1252
  <div class="description">
1247
1253
  <p>
1248
- Alias for <a href="Enumerable.html#M000741">collect_with_index</a>
1254
+ Alias for <a href="Enumerable.html#M000736">collect_with_index</a>
1249
1255
  </p>
1250
1256
  </div>
1251
1257
  </div>
1252
1258
  <div class="method">
1253
1259
  <div class="title">
1254
- <a name="M000742"></a><b>map_with_index</b>()
1260
+ <a name="M000737"></a><b>map_with_index</b>()
1255
1261
  </div>
1256
1262
  <div class="description">
1257
1263
  <p>
1258
- Alias for <a href="Enumerable.html#M000741">collect_with_index</a>
1264
+ Alias for <a href="Enumerable.html#M000736">collect_with_index</a>
1259
1265
  </p>
1260
1266
  </div>
1261
1267
  </div>
1262
1268
  <div class="method">
1263
1269
  <div class="title">
1264
- <a name="M000781"></a><b>mash</b>(&amp;yld)
1270
+ <a name="M000748"></a><b>mash</b>(&amp;yld)
1265
1271
  </div>
1266
1272
  <div class="description">
1267
1273
  <p>
@@ -1281,9 +1287,14 @@ CREDIT: Trans CREDIT: Andrew Dudzik (adudzik)
1281
1287
  NOTE: Would correlate would be better?
1282
1288
  </p>
1283
1289
  </div>
1290
+ <div class="aka">
1291
+ This method is also aliased as
1292
+ <a href="Enumerable.html#M000749">graph</a>
1293
+ <a href="Enumerable.html#M000778">graph</a>
1294
+ </div>
1284
1295
  <div class="sourcecode">
1285
- <p class="source-link">[ <a href="javascript:toggleSource('M000781_source')" id="l_M000781_source">show source</a> ]</p>
1286
- <div id="M000781_source" class="dyn-source">
1296
+ <p class="source-link">[ <a href="javascript:toggleSource('M000748_source')" id="l_M000748_source">show source</a> ]</p>
1297
+ <div id="M000748_source" class="dyn-source">
1287
1298
  <pre>
1288
1299
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/mash.rb, line 15</span>
1289
1300
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mash</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">yld</span>)
@@ -1304,7 +1315,7 @@ NOTE: Would correlate would be better?
1304
1315
  </div>
1305
1316
  <div class="method">
1306
1317
  <div class="title">
1307
- <a name="M000752"></a><b>mash</b>(&amp;yld)
1318
+ <a name="M000777"></a><b>mash</b>(&amp;yld)
1308
1319
  </div>
1309
1320
  <div class="description">
1310
1321
  <p>
@@ -1324,14 +1335,9 @@ CREDIT: Trans CREDIT: Andrew Dudzik (adudzik)
1324
1335
  NOTE: Would correlate would be better?
1325
1336
  </p>
1326
1337
  </div>
1327
- <div class="aka">
1328
- This method is also aliased as
1329
- <a href="Enumerable.html#M000753">graph</a>
1330
- <a href="Enumerable.html#M000782">graph</a>
1331
- </div>
1332
1338
  <div class="sourcecode">
1333
- <p class="source-link">[ <a href="javascript:toggleSource('M000752_source')" id="l_M000752_source">show source</a> ]</p>
1334
- <div id="M000752_source" class="dyn-source">
1339
+ <p class="source-link">[ <a href="javascript:toggleSource('M000777_source')" id="l_M000777_source">show source</a> ]</p>
1340
+ <div id="M000777_source" class="dyn-source">
1335
1341
  <pre>
1336
1342
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/mash.rb, line 15</span>
1337
1343
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mash</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">yld</span>)
@@ -1352,11 +1358,11 @@ NOTE: Would correlate would be better?
1352
1358
  </div>
1353
1359
  <div class="method">
1354
1360
  <div class="title">
1355
- <a name="M000768"></a><b>mode</b>()
1361
+ <a name="M000762"></a><b>mode</b>()
1356
1362
  </div>
1357
1363
  <div class="description">
1358
1364
  <p>
1359
- In Statistics <a href="Enumerable.html#M000739">mode</a> is the value that
1365
+ In Statistics <a href="Enumerable.html#M000733">mode</a> is the value that
1360
1366
  occurs most frequently in a given set of data.
1361
1367
  </p>
1362
1368
  <pre>
@@ -1364,8 +1370,8 @@ occurs most frequently in a given set of data.
1364
1370
  </pre>
1365
1371
  </div>
1366
1372
  <div class="sourcecode">
1367
- <p class="source-link">[ <a href="javascript:toggleSource('M000768_source')" id="l_M000768_source">show source</a> ]</p>
1368
- <div id="M000768_source" class="dyn-source">
1373
+ <p class="source-link">[ <a href="javascript:toggleSource('M000762_source')" id="l_M000762_source">show source</a> ]</p>
1374
+ <div id="M000762_source" class="dyn-source">
1369
1375
  <pre>
1370
1376
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/mode.rb, line 8</span>
1371
1377
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mode</span>
@@ -1379,11 +1385,11 @@ occurs most frequently in a given set of data.
1379
1385
  </div>
1380
1386
  <div class="method">
1381
1387
  <div class="title">
1382
- <a name="M000739"></a><b>mode</b>()
1388
+ <a name="M000733"></a><b>mode</b>()
1383
1389
  </div>
1384
1390
  <div class="description">
1385
1391
  <p>
1386
- In Statistics <a href="Enumerable.html#M000739">mode</a> is the value that
1392
+ In Statistics <a href="Enumerable.html#M000733">mode</a> is the value that
1387
1393
  occurs most frequently in a given set of data.
1388
1394
  </p>
1389
1395
  <pre>
@@ -1391,8 +1397,8 @@ occurs most frequently in a given set of data.
1391
1397
  </pre>
1392
1398
  </div>
1393
1399
  <div class="sourcecode">
1394
- <p class="source-link">[ <a href="javascript:toggleSource('M000739_source')" id="l_M000739_source">show source</a> ]</p>
1395
- <div id="M000739_source" class="dyn-source">
1400
+ <p class="source-link">[ <a href="javascript:toggleSource('M000733_source')" id="l_M000733_source">show source</a> ]</p>
1401
+ <div id="M000733_source" class="dyn-source">
1396
1402
  <pre>
1397
1403
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/mode.rb, line 8</span>
1398
1404
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mode</span>
@@ -1406,14 +1412,14 @@ occurs most frequently in a given set of data.
1406
1412
  </div>
1407
1413
  <div class="method">
1408
1414
  <div class="title">
1409
- <a name="M000754"></a><b>modulate</b>(modulo)
1415
+ <a name="M000750"></a><b>modulate</b>(modulo)
1410
1416
  </div>
1411
1417
  <div class="description">
1412
1418
  <p>
1413
1419
  Modulate. Divide an array into groups by modulo of the index.
1414
1420
  </p>
1415
1421
  <p>
1416
- [2,4,6,8].<a href="Enumerable.html#M000754">modulate</a>(2) #=&gt;
1422
+ [2,4,6,8].<a href="Enumerable.html#M000750">modulate</a>(2) #=&gt;
1417
1423
  [[2,6],[4,8]]
1418
1424
  </p>
1419
1425
  <pre>
@@ -1424,8 +1430,8 @@ NOTE: Would this be better named &#8216;collate&#8217;?
1424
1430
  </p>
1425
1431
  </div>
1426
1432
  <div class="sourcecode">
1427
- <p class="source-link">[ <a href="javascript:toggleSource('M000754_source')" id="l_M000754_source">show source</a> ]</p>
1428
- <div id="M000754_source" class="dyn-source">
1433
+ <p class="source-link">[ <a href="javascript:toggleSource('M000750_source')" id="l_M000750_source">show source</a> ]</p>
1434
+ <div id="M000750_source" class="dyn-source">
1429
1435
  <pre>
1430
1436
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/modulate.rb, line 11</span>
1431
1437
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">modulate</span>(<span class="ruby-identifier">modulo</span>)
@@ -1443,14 +1449,14 @@ NOTE: Would this be better named &#8216;collate&#8217;?
1443
1449
  </div>
1444
1450
  <div class="method">
1445
1451
  <div class="title">
1446
- <a name="M000783"></a><b>modulate</b>(modulo)
1452
+ <a name="M000779"></a><b>modulate</b>(modulo)
1447
1453
  </div>
1448
1454
  <div class="description">
1449
1455
  <p>
1450
1456
  Modulate. Divide an array into groups by modulo of the index.
1451
1457
  </p>
1452
1458
  <p>
1453
- [2,4,6,8].<a href="Enumerable.html#M000754">modulate</a>(2) #=&gt;
1459
+ [2,4,6,8].<a href="Enumerable.html#M000750">modulate</a>(2) #=&gt;
1454
1460
  [[2,6],[4,8]]
1455
1461
  </p>
1456
1462
  <pre>
@@ -1461,8 +1467,8 @@ NOTE: Would this be better named &#8216;collate&#8217;?
1461
1467
  </p>
1462
1468
  </div>
1463
1469
  <div class="sourcecode">
1464
- <p class="source-link">[ <a href="javascript:toggleSource('M000783_source')" id="l_M000783_source">show source</a> ]</p>
1465
- <div id="M000783_source" class="dyn-source">
1470
+ <p class="source-link">[ <a href="javascript:toggleSource('M000779_source')" id="l_M000779_source">show source</a> ]</p>
1471
+ <div id="M000779_source" class="dyn-source">
1466
1472
  <pre>
1467
1473
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/modulate.rb, line 11</span>
1468
1474
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">modulate</span>(<span class="ruby-identifier">modulo</span>)
@@ -1480,7 +1486,7 @@ NOTE: Would this be better named &#8216;collate&#8217;?
1480
1486
  </div>
1481
1487
  <div class="method">
1482
1488
  <div class="title">
1483
- <a name="M000749"></a><b>none?</b>( {|e| ...}
1489
+ <a name="M000774"></a><b>none?</b>( {|e| ...}
1484
1490
  </div>
1485
1491
  <div class="description">
1486
1492
  <p>
@@ -1504,8 +1510,8 @@ only if <em>none</em> of the elements have a true value (i.e. not
1504
1510
  </pre>
1505
1511
  </div>
1506
1512
  <div class="sourcecode">
1507
- <p class="source-link">[ <a href="javascript:toggleSource('M000749_source')" id="l_M000749_source">show source</a> ]</p>
1508
- <div id="M000749_source" class="dyn-source">
1513
+ <p class="source-link">[ <a href="javascript:toggleSource('M000774_source')" id="l_M000774_source">show source</a> ]</p>
1514
+ <div id="M000774_source" class="dyn-source">
1509
1515
  <pre>
1510
1516
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/none.rb, line 21</span>
1511
1517
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">none?</span> <span class="ruby-comment cmt"># :yield: e</span>
@@ -1521,7 +1527,7 @@ only if <em>none</em> of the elements have a true value (i.e. not
1521
1527
  </div>
1522
1528
  <div class="method">
1523
1529
  <div class="title">
1524
- <a name="M000778"></a><b>none?</b>( {|e| ...}
1530
+ <a name="M000745"></a><b>none?</b>( {|e| ...}
1525
1531
  </div>
1526
1532
  <div class="description">
1527
1533
  <p>
@@ -1545,8 +1551,8 @@ only if <em>none</em> of the elements have a true value (i.e. not
1545
1551
  </pre>
1546
1552
  </div>
1547
1553
  <div class="sourcecode">
1548
- <p class="source-link">[ <a href="javascript:toggleSource('M000778_source')" id="l_M000778_source">show source</a> ]</p>
1549
- <div id="M000778_source" class="dyn-source">
1554
+ <p class="source-link">[ <a href="javascript:toggleSource('M000745_source')" id="l_M000745_source">show source</a> ]</p>
1555
+ <div id="M000745_source" class="dyn-source">
1550
1556
  <pre>
1551
1557
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/none.rb, line 21</span>
1552
1558
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">none?</span> <span class="ruby-comment cmt"># :yield: e</span>
@@ -1562,7 +1568,7 @@ only if <em>none</em> of the elements have a true value (i.e. not
1562
1568
  </div>
1563
1569
  <div class="method">
1564
1570
  <div class="title">
1565
- <a name="M000747"></a><b>nonuniq</b>()
1571
+ <a name="M000772"></a><b>nonuniq</b>()
1566
1572
  </div>
1567
1573
  <div class="description">
1568
1574
  <p>
@@ -1574,14 +1580,9 @@ Returns a list on non-unique,
1574
1580
  CREDIT: Martin DeMello
1575
1581
  </pre>
1576
1582
  </div>
1577
- <div class="aka">
1578
- This method is also aliased as
1579
- <a href="Enumerable.html#M000748">duplicates</a>
1580
- <a href="Enumerable.html#M000777">duplicates</a>
1581
- </div>
1582
1583
  <div class="sourcecode">
1583
- <p class="source-link">[ <a href="javascript:toggleSource('M000747_source')" id="l_M000747_source">show source</a> ]</p>
1584
- <div id="M000747_source" class="dyn-source">
1584
+ <p class="source-link">[ <a href="javascript:toggleSource('M000772_source')" id="l_M000772_source">show source</a> ]</p>
1585
+ <div id="M000772_source" class="dyn-source">
1585
1586
  <pre>
1586
1587
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/duplicates.rb, line 9</span>
1587
1588
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">nonuniq</span>
@@ -1599,7 +1600,7 @@ Returns a list on non-unique,
1599
1600
  </div>
1600
1601
  <div class="method">
1601
1602
  <div class="title">
1602
- <a name="M000776"></a><b>nonuniq</b>()
1603
+ <a name="M000743"></a><b>nonuniq</b>()
1603
1604
  </div>
1604
1605
  <div class="description">
1605
1606
  <p>
@@ -1611,9 +1612,14 @@ Returns a list on non-unique,
1611
1612
  CREDIT: Martin DeMello
1612
1613
  </pre>
1613
1614
  </div>
1615
+ <div class="aka">
1616
+ This method is also aliased as
1617
+ <a href="Enumerable.html#M000744">duplicates</a>
1618
+ <a href="Enumerable.html#M000773">duplicates</a>
1619
+ </div>
1614
1620
  <div class="sourcecode">
1615
- <p class="source-link">[ <a href="javascript:toggleSource('M000776_source')" id="l_M000776_source">show source</a> ]</p>
1616
- <div id="M000776_source" class="dyn-source">
1621
+ <p class="source-link">[ <a href="javascript:toggleSource('M000743_source')" id="l_M000743_source">show source</a> ]</p>
1622
+ <div id="M000743_source" class="dyn-source">
1617
1623
  <pre>
1618
1624
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/duplicates.rb, line 9</span>
1619
1625
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">nonuniq</span>
@@ -1631,12 +1637,12 @@ Returns a list on non-unique,
1631
1637
  </div>
1632
1638
  <div class="method">
1633
1639
  <div class="title">
1634
- <a name="M000740"></a><b>occur</b>(n=nil) {|| ...}
1640
+ <a name="M000735"></a><b>occur</b>(n=nil) {|| ...}
1635
1641
  </div>
1636
1642
  <div class="description">
1637
1643
  <p>
1638
1644
  Returns an array of elements for the elements that <a
1639
- href="Enumerable.html#M000740">occur</a> n times. Or according to the
1645
+ href="Enumerable.html#M000735">occur</a> n times. Or according to the
1640
1646
  results of a given block.
1641
1647
  </p>
1642
1648
  <pre>
@@ -1654,8 +1660,8 @@ results of a given block.
1654
1660
  </pre>
1655
1661
  </div>
1656
1662
  <div class="sourcecode">
1657
- <p class="source-link">[ <a href="javascript:toggleSource('M000740_source')" id="l_M000740_source">show source</a> ]</p>
1658
- <div id="M000740_source" class="dyn-source">
1663
+ <p class="source-link">[ <a href="javascript:toggleSource('M000735_source')" id="l_M000735_source">show source</a> ]</p>
1664
+ <div id="M000735_source" class="dyn-source">
1659
1665
  <pre>
1660
1666
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/occur.rb, line 18</span>
1661
1667
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">occur</span>(<span class="ruby-identifier">n</span>=<span class="ruby-keyword kw">nil</span>) <span class="ruby-comment cmt">#:yield:</span>
@@ -1682,12 +1688,12 @@ results of a given block.
1682
1688
  </div>
1683
1689
  <div class="method">
1684
1690
  <div class="title">
1685
- <a name="M000769"></a><b>occur</b>(n=nil) {|| ...}
1691
+ <a name="M000764"></a><b>occur</b>(n=nil) {|| ...}
1686
1692
  </div>
1687
1693
  <div class="description">
1688
1694
  <p>
1689
1695
  Returns an array of elements for the elements that <a
1690
- href="Enumerable.html#M000740">occur</a> n times. Or according to the
1696
+ href="Enumerable.html#M000735">occur</a> n times. Or according to the
1691
1697
  results of a given block.
1692
1698
  </p>
1693
1699
  <pre>
@@ -1705,8 +1711,8 @@ results of a given block.
1705
1711
  </pre>
1706
1712
  </div>
1707
1713
  <div class="sourcecode">
1708
- <p class="source-link">[ <a href="javascript:toggleSource('M000769_source')" id="l_M000769_source">show source</a> ]</p>
1709
- <div id="M000769_source" class="dyn-source">
1714
+ <p class="source-link">[ <a href="javascript:toggleSource('M000764_source')" id="l_M000764_source">show source</a> ]</p>
1715
+ <div id="M000764_source" class="dyn-source">
1710
1716
  <pre>
1711
1717
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/occur.rb, line 18</span>
1712
1718
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">occur</span>(<span class="ruby-identifier">n</span>=<span class="ruby-keyword kw">nil</span>) <span class="ruby-comment cmt">#:yield:</span>
@@ -1733,7 +1739,7 @@ results of a given block.
1733
1739
  </div>
1734
1740
  <div class="method">
1735
1741
  <div class="title">
1736
- <a name="M000764"></a><b>one?</b>( {|e| ...}
1742
+ <a name="M000729"></a><b>one?</b>( {|e| ...}
1737
1743
  </div>
1738
1744
  <div class="description">
1739
1745
  <p>
@@ -1757,8 +1763,8 @@ only if <em>exactly one</em> element has a true value (i.e. not
1757
1763
  </pre>
1758
1764
  </div>
1759
1765
  <div class="sourcecode">
1760
- <p class="source-link">[ <a href="javascript:toggleSource('M000764_source')" id="l_M000764_source">show source</a> ]</p>
1761
- <div id="M000764_source" class="dyn-source">
1766
+ <p class="source-link">[ <a href="javascript:toggleSource('M000729_source')" id="l_M000729_source">show source</a> ]</p>
1767
+ <div id="M000729_source" class="dyn-source">
1762
1768
  <pre>
1763
1769
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/one.rb, line 21</span>
1764
1770
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">one?</span> <span class="ruby-comment cmt"># :yield: e</span>
@@ -1781,7 +1787,7 @@ only if <em>exactly one</em> element has a true value (i.e. not
1781
1787
  </div>
1782
1788
  <div class="method">
1783
1789
  <div class="title">
1784
- <a name="M000735"></a><b>one?</b>( {|e| ...}
1790
+ <a name="M000758"></a><b>one?</b>( {|e| ...}
1785
1791
  </div>
1786
1792
  <div class="description">
1787
1793
  <p>
@@ -1805,8 +1811,8 @@ only if <em>exactly one</em> element has a true value (i.e. not
1805
1811
  </pre>
1806
1812
  </div>
1807
1813
  <div class="sourcecode">
1808
- <p class="source-link">[ <a href="javascript:toggleSource('M000735_source')" id="l_M000735_source">show source</a> ]</p>
1809
- <div id="M000735_source" class="dyn-source">
1814
+ <p class="source-link">[ <a href="javascript:toggleSource('M000758_source')" id="l_M000758_source">show source</a> ]</p>
1815
+ <div id="M000758_source" class="dyn-source">
1810
1816
  <pre>
1811
1817
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/one.rb, line 21</span>
1812
1818
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">one?</span> <span class="ruby-comment cmt"># :yield: e</span>
@@ -1829,12 +1835,12 @@ only if <em>exactly one</em> element has a true value (i.e. not
1829
1835
  </div>
1830
1836
  <div class="method">
1831
1837
  <div class="title">
1832
- <a name="M000757"></a><b>probability</b>()
1838
+ <a name="M000755"></a><b>probability</b>()
1833
1839
  </div>
1834
1840
  <div class="description">
1835
1841
  <p>
1836
- Generates a hash mapping each unique symbol in the array to the relative <a
1837
- href="Enumerable.html#M000760">frequency</a>, i.e. the probablity, of it
1842
+ Generates a hash mapping each unique element in the array to the relative
1843
+ <a href="Enumerable.html#M000740">frequency</a>, i.e. the probablity, of it
1838
1844
  appearence.
1839
1845
  </p>
1840
1846
  <pre>
@@ -1842,8 +1848,8 @@ appearence.
1842
1848
  </pre>
1843
1849
  </div>
1844
1850
  <div class="sourcecode">
1845
- <p class="source-link">[ <a href="javascript:toggleSource('M000757_source')" id="l_M000757_source">show source</a> ]</p>
1846
- <div id="M000757_source" class="dyn-source">
1851
+ <p class="source-link">[ <a href="javascript:toggleSource('M000755_source')" id="l_M000755_source">show source</a> ]</p>
1852
+ <div id="M000755_source" class="dyn-source">
1847
1853
  <pre>
1848
1854
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/probability.rb, line 9</span>
1849
1855
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">probability</span>
@@ -1862,12 +1868,12 @@ appearence.
1862
1868
  </div>
1863
1869
  <div class="method">
1864
1870
  <div class="title">
1865
- <a name="M000786"></a><b>probability</b>()
1871
+ <a name="M000784"></a><b>probability</b>()
1866
1872
  </div>
1867
1873
  <div class="description">
1868
1874
  <p>
1869
- Generates a hash mapping each unique symbol in the array to the relative <a
1870
- href="Enumerable.html#M000760">frequency</a>, i.e. the probablity, of it
1875
+ Generates a hash mapping each unique element in the array to the relative
1876
+ <a href="Enumerable.html#M000740">frequency</a>, i.e. the probablity, of it
1871
1877
  appearence.
1872
1878
  </p>
1873
1879
  <pre>
@@ -1875,8 +1881,8 @@ appearence.
1875
1881
  </pre>
1876
1882
  </div>
1877
1883
  <div class="sourcecode">
1878
- <p class="source-link">[ <a href="javascript:toggleSource('M000786_source')" id="l_M000786_source">show source</a> ]</p>
1879
- <div id="M000786_source" class="dyn-source">
1884
+ <p class="source-link">[ <a href="javascript:toggleSource('M000784_source')" id="l_M000784_source">show source</a> ]</p>
1885
+ <div id="M000784_source" class="dyn-source">
1880
1886
  <pre>
1881
1887
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/probability.rb, line 9</span>
1882
1888
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">probability</span>
@@ -1895,12 +1901,12 @@ appearence.
1895
1901
  </div>
1896
1902
  <div class="method">
1897
1903
  <div class="title">
1898
- <a name="M000755"></a><b>split</b>(pattern)
1904
+ <a name="M000753"></a><b>split</b>(pattern)
1899
1905
  </div>
1900
1906
  <div class="description">
1901
1907
  <p>
1902
1908
  Split on matching pattern. Unlike <a
1903
- href="Enumerable.html#M000745">divide</a> this does not include matching
1909
+ href="Enumerable.html#M000741">divide</a> this does not include matching
1904
1910
  elements.
1905
1911
  </p>
1906
1912
  <pre>
@@ -1912,8 +1918,8 @@ CREDIT: Trans
1912
1918
  </p>
1913
1919
  </div>
1914
1920
  <div class="sourcecode">
1915
- <p class="source-link">[ <a href="javascript:toggleSource('M000755_source')" id="l_M000755_source">show source</a> ]</p>
1916
- <div id="M000755_source" class="dyn-source">
1921
+ <p class="source-link">[ <a href="javascript:toggleSource('M000753_source')" id="l_M000753_source">show source</a> ]</p>
1922
+ <div id="M000753_source" class="dyn-source">
1917
1923
  <pre>
1918
1924
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/split.rb, line 10</span>
1919
1925
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">split</span>(<span class="ruby-identifier">pattern</span>)
@@ -1933,12 +1939,12 @@ CREDIT: Trans
1933
1939
  </div>
1934
1940
  <div class="method">
1935
1941
  <div class="title">
1936
- <a name="M000784"></a><b>split</b>(pattern)
1942
+ <a name="M000782"></a><b>split</b>(pattern)
1937
1943
  </div>
1938
1944
  <div class="description">
1939
1945
  <p>
1940
1946
  Split on matching pattern. Unlike <a
1941
- href="Enumerable.html#M000745">divide</a> this does not include matching
1947
+ href="Enumerable.html#M000741">divide</a> this does not include matching
1942
1948
  elements.
1943
1949
  </p>
1944
1950
  <pre>
@@ -1950,8 +1956,8 @@ CREDIT: Trans
1950
1956
  </p>
1951
1957
  </div>
1952
1958
  <div class="sourcecode">
1953
- <p class="source-link">[ <a href="javascript:toggleSource('M000784_source')" id="l_M000784_source">show source</a> ]</p>
1954
- <div id="M000784_source" class="dyn-source">
1959
+ <p class="source-link">[ <a href="javascript:toggleSource('M000782_source')" id="l_M000782_source">show source</a> ]</p>
1960
+ <div id="M000782_source" class="dyn-source">
1955
1961
  <pre>
1956
1962
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/split.rb, line 10</span>
1957
1963
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">split</span>(<span class="ruby-identifier">pattern</span>)
@@ -1971,11 +1977,11 @@ CREDIT: Trans
1971
1977
  </div>
1972
1978
  <div class="method">
1973
1979
  <div class="title">
1974
- <a name="M000738"></a><b>sum</b>(identity = 0, &amp;block)
1980
+ <a name="M000732"></a><b>sum</b>(identity = 0, &amp;block)
1975
1981
  </div>
1976
1982
  <div class="description">
1977
1983
  <p>
1978
- Uses #+ to <a href="Enumerable.html#M000738">sum</a> the enumerated
1984
+ Uses #+ to <a href="Enumerable.html#M000732">sum</a> the enumerated
1979
1985
  elements.
1980
1986
  </p>
1981
1987
  <pre>
@@ -1984,8 +1990,8 @@ elements.
1984
1990
  </pre>
1985
1991
  </div>
1986
1992
  <div class="sourcecode">
1987
- <p class="source-link">[ <a href="javascript:toggleSource('M000738_source')" id="l_M000738_source">show source</a> ]</p>
1988
- <div id="M000738_source" class="dyn-source">
1993
+ <p class="source-link">[ <a href="javascript:toggleSource('M000732_source')" id="l_M000732_source">show source</a> ]</p>
1994
+ <div id="M000732_source" class="dyn-source">
1989
1995
  <pre>
1990
1996
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/sum.rb, line 8</span>
1991
1997
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sum</span>(<span class="ruby-identifier">identity</span> = <span class="ruby-value">0</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -2001,11 +2007,11 @@ elements.
2001
2007
  </div>
2002
2008
  <div class="method">
2003
2009
  <div class="title">
2004
- <a name="M000767"></a><b>sum</b>(identity = 0, &amp;block)
2010
+ <a name="M000761"></a><b>sum</b>(identity = 0, &amp;block)
2005
2011
  </div>
2006
2012
  <div class="description">
2007
2013
  <p>
2008
- Uses #+ to <a href="Enumerable.html#M000738">sum</a> the enumerated
2014
+ Uses #+ to <a href="Enumerable.html#M000732">sum</a> the enumerated
2009
2015
  elements.
2010
2016
  </p>
2011
2017
  <pre>
@@ -2014,8 +2020,8 @@ elements.
2014
2020
  </pre>
2015
2021
  </div>
2016
2022
  <div class="sourcecode">
2017
- <p class="source-link">[ <a href="javascript:toggleSource('M000767_source')" id="l_M000767_source">show source</a> ]</p>
2018
- <div id="M000767_source" class="dyn-source">
2023
+ <p class="source-link">[ <a href="javascript:toggleSource('M000761_source')" id="l_M000761_source">show source</a> ]</p>
2024
+ <div id="M000761_source" class="dyn-source">
2019
2025
  <pre>
2020
2026
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/sum.rb, line 8</span>
2021
2027
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sum</span>(<span class="ruby-identifier">identity</span> = <span class="ruby-value">0</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -2031,7 +2037,7 @@ elements.
2031
2037
  </div>
2032
2038
  <div class="method">
2033
2039
  <div class="title">
2034
- <a name="M000734"></a><b>to_h</b>(arrayed=nil)
2040
+ <a name="M000728"></a><b>to_h</b>(arrayed=nil)
2035
2041
  </div>
2036
2042
  <div class="description">
2037
2043
  <p>
@@ -2043,8 +2049,8 @@ CREDIT: Trans
2043
2049
  </p>
2044
2050
  </div>
2045
2051
  <div class="sourcecode">
2046
- <p class="source-link">[ <a href="javascript:toggleSource('M000734_source')" id="l_M000734_source">show source</a> ]</p>
2047
- <div id="M000734_source" class="dyn-source">
2052
+ <p class="source-link">[ <a href="javascript:toggleSource('M000728_source')" id="l_M000728_source">show source</a> ]</p>
2053
+ <div id="M000728_source" class="dyn-source">
2048
2054
  <pre>
2049
2055
  <span class="ruby-comment cmt"># File lib/core/facets/to_hash.rb, line 65</span>
2050
2056
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h</span>(<span class="ruby-identifier">arrayed</span>=<span class="ruby-keyword kw">nil</span>)
@@ -2056,7 +2062,7 @@ CREDIT: Trans
2056
2062
  </div>
2057
2063
  <div class="method">
2058
2064
  <div class="title">
2059
- <a name="M000779"></a><b>uniq_by</b>( {|| ...}
2065
+ <a name="M000746"></a><b>uniq_by</b>( {|| ...}
2060
2066
  </div>
2061
2067
  <div class="description">
2062
2068
  <p>
@@ -2075,8 +2081,8 @@ produces
2075
2081
  </pre>
2076
2082
  </div>
2077
2083
  <div class="sourcecode">
2078
- <p class="source-link">[ <a href="javascript:toggleSource('M000779_source')" id="l_M000779_source">show source</a> ]</p>
2079
- <div id="M000779_source" class="dyn-source">
2084
+ <p class="source-link">[ <a href="javascript:toggleSource('M000746_source')" id="l_M000746_source">show source</a> ]</p>
2085
+ <div id="M000746_source" class="dyn-source">
2080
2086
  <pre>
2081
2087
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/uniq_by.rb, line 13</span>
2082
2088
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">uniq_by</span> <span class="ruby-comment cmt">#:yield:</span>
@@ -2088,7 +2094,7 @@ produces
2088
2094
  </div>
2089
2095
  <div class="method">
2090
2096
  <div class="title">
2091
- <a name="M000750"></a><b>uniq_by</b>( {|| ...}
2097
+ <a name="M000775"></a><b>uniq_by</b>( {|| ...}
2092
2098
  </div>
2093
2099
  <div class="description">
2094
2100
  <p>
@@ -2107,8 +2113,8 @@ produces
2107
2113
  </pre>
2108
2114
  </div>
2109
2115
  <div class="sourcecode">
2110
- <p class="source-link">[ <a href="javascript:toggleSource('M000750_source')" id="l_M000750_source">show source</a> ]</p>
2111
- <div id="M000750_source" class="dyn-source">
2116
+ <p class="source-link">[ <a href="javascript:toggleSource('M000775_source')" id="l_M000775_source">show source</a> ]</p>
2117
+ <div id="M000775_source" class="dyn-source">
2112
2118
  <pre>
2113
2119
  <span class="ruby-comment cmt"># File lib/core/facets/enumerable/uniq_by.rb, line 13</span>
2114
2120
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">uniq_by</span> <span class="ruby-comment cmt">#:yield:</span>