Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
v1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
luvies committed Mar 12, 2019
1 parent 3a925f3 commit 87a5580
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ This module is meant to provide memory-efficient lazy-evaluation iteration for i
Use the following import:

```ts
import { Lazy } from 'https://deno.land/x/[email protected].0/mod.ts';
import { Lazy } from 'https://deno.land/x/[email protected].1/mod.ts';
```

Make sure the `@v{version}` tag is the correct one you want. I'd recommend against master, as it could change without notice & might be broken (although I will try not to break it).
Expand Down Expand Up @@ -79,12 +79,12 @@ The `Lazy` class is the root of the module, all things come from it and are deri

```ts
// Static method import.
import { Lazy } from 'https://deno.land/x/[email protected].0/mod.ts';
import { Lazy } from 'https://deno.land/x/[email protected].1/mod.ts';

const iterable = Lazy.from([1, 2, 3, 4, 5]);

// Direct function import.
import { from } from 'https://deno.land/x/[email protected].0/mod.ts';
import { from } from 'https://deno.land/x/[email protected].1/mod.ts';

const iterable = from([1, 2, 3, 4, 5]);
```
Expand Down
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h2 id="contents">Contents</h2>
<h2 id="installation">Installation</h2>
<h3 id="deno">Deno</h3>
<p>Use the following import:</p>
<pre><code class="language-ts"><span class="hljs-keyword">import</span> { Lazy } <span class="hljs-keyword">from</span> <span class="hljs-string">'https://deno.land/x/[email protected].0/mod.ts'</span>;</code></pre>
<pre><code class="language-ts"><span class="hljs-keyword">import</span> { Lazy } <span class="hljs-keyword">from</span> <span class="hljs-string">'https://deno.land/x/[email protected].1/mod.ts'</span>;</code></pre>
<p>Make sure the <code>@v{version}</code> tag is the correct one you want. I&#39;d recommend against master, as it could change without notice &amp; might be broken (although I will try not to break it).</p>
<h3 id="node">Node</h3>
<p>The packge can be found here: <a href="https://www.npmjs.com/package/@luvies/lazy">https://www.npmjs.com/package/@luvies/lazy</a>.</p>
Expand All @@ -112,12 +112,12 @@ <h2 id="overview">Overview</h2>
<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">repeat</span>&lt;<span class="hljs-title">TElement</span>&gt;(<span class="hljs-params">element: TElement, count?: <span class="hljs-built_in">number</span></span>): <span class="hljs-title">Lazy</span>&lt;<span class="hljs-title">TElement</span>&gt;</span>;</code></pre>
<p>The <code>Lazy</code> class is the root of the module, all things come from it and are derived off it. To start using it, do something like the following:</p>
<pre><code class="language-ts"><span class="hljs-comment">// Static method import.</span>
<span class="hljs-keyword">import</span> { Lazy } <span class="hljs-keyword">from</span> <span class="hljs-string">'https://deno.land/x/[email protected].0/mod.ts'</span>;
<span class="hljs-keyword">import</span> { Lazy } <span class="hljs-keyword">from</span> <span class="hljs-string">'https://deno.land/x/[email protected].1/mod.ts'</span>;

<span class="hljs-keyword">const</span> iterable = Lazy.from([<span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>, <span class="hljs-number">4</span>, <span class="hljs-number">5</span>]);

<span class="hljs-comment">// Direct function import.</span>
<span class="hljs-keyword">import</span> { <span class="hljs-keyword">from</span> } <span class="hljs-keyword">from</span> <span class="hljs-string">'https://deno.land/x/[email protected].0/mod.ts'</span>;
<span class="hljs-keyword">import</span> { <span class="hljs-keyword">from</span> } <span class="hljs-keyword">from</span> <span class="hljs-string">'https://deno.land/x/[email protected].1/mod.ts'</span>;

<span class="hljs-keyword">const</span> iterable = <span class="hljs-keyword">from</span>([<span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>, <span class="hljs-number">4</span>, <span class="hljs-number">5</span>]);</code></pre>
<p>After you have done this, the full power of the module is available to play with.</p>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"publishConfig": {
"access": "public"
},
"version": "1.4.0",
"version": "1.4.1",
"description": "A linq-like lazy iteration module that aims to support deno, node & browser",
"main": "dist/mod.js",
"repository": "luvies/lazy",
Expand Down

0 comments on commit 87a5580

Please sign in to comment.