mirror of https://github.com/copenhas/ropex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
112 lines
2.7 KiB
112 lines
2.7 KiB
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Enumerable.Rope</title>
|
|
<meta charset="utf-8">
|
|
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
relpath = '';
|
|
if (relpath != '') relpath += '/';
|
|
</script>
|
|
|
|
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
|
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<script type="text/javascript" charset="utf-8">
|
|
if (window.top.frames.main) document.body.className = 'frames';
|
|
</script>
|
|
|
|
<div id="content">
|
|
<h1>
|
|
Enumerable.Rope
|
|
|
|
</h1>
|
|
|
|
|
|
<div id="moduledoc" class="docstring">
|
|
<p>A convenience implementation that enumerates over the leaves of the rope but none
|
|
of the parent/concatenation nodes.</p>
|
|
|
|
<p>Refer to the Rope module documentation for leaf vs parent/concat node.</p>
|
|
|
|
</div>
|
|
|
|
|
|
<a href="https://github.com/copenhas/ropex/blob/master/lib/rope.ex#L401" target="_blank" class="view_source">Source</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h2 id="functions_summary">Functions summary</h2>
|
|
<ul class="summary">
|
|
<li>
|
|
<span class="summary_signature">
|
|
<a href="#count/1">count/1</a>
|
|
</span>
|
|
</li>
|
|
<li>
|
|
<span class="summary_signature">
|
|
<a href="#member?/2">member?/2</a>
|
|
</span>
|
|
</li>
|
|
<li>
|
|
<span class="summary_signature">
|
|
<a href="#reduce/3">reduce/3</a>
|
|
</span>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div id="functions_details" class="details_list">
|
|
<h2>Functions</h2>
|
|
<div class="detail">
|
|
<p class="signature" id="count/1">
|
|
<strong>count(rope)</strong>
|
|
</p>
|
|
<div class="docstring"><p>A count of the leaf nodes in the rope. This current traverses the rope to count them.</p>
|
|
</div>
|
|
|
|
<a href="https://github.com/copenhas/ropex/blob/master/lib/rope.ex#L412" target="_blank" class="view_source">Source</a>
|
|
|
|
</div>
|
|
<div class="detail">
|
|
<p class="signature" id="member?/2">
|
|
<strong>member?(rope, value)</strong>
|
|
</p>
|
|
<div class="docstring"><p>Searches the ropes leaves in order for a match.</p>
|
|
</div>
|
|
|
|
<a href="https://github.com/copenhas/ropex/blob/master/lib/rope.ex#L419" target="_blank" class="view_source">Source</a>
|
|
|
|
</div>
|
|
<div class="detail">
|
|
<p class="signature" id="reduce/3">
|
|
<strong>reduce(rope, acc, fun)</strong>
|
|
</p>
|
|
<div class="docstring"><p>Reduces over the leaf nodes.</p>
|
|
</div>
|
|
|
|
<a href="https://github.com/copenhas/ropex/blob/master/lib/rope.ex#L437" target="_blank" class="view_source">Source</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|