Skip to content

Commit ea299e2

Browse files
author
Don
committed
remove let bindings and make it clear dependencies should be installed
1 parent d4ba9c0 commit ea299e2

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Diff for: _generator/learn/getting-started/index.markdown

+4-4
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ If everything was built successfully, and the tests ran without problems, then t
5353

5454
#### Installing Dependencies
5555

56-
Dependencies can be installed using Bower:
56+
You should install the dependencies needed in this guide with Bower:
5757

5858
bower install purescript-lists --save
5959

@@ -120,13 +120,13 @@ Let's start by listing all of the natural numbers below 1000 as a list. We can d
120120

121121
You should see a list with 1000 elements printed to the command line.
122122

123-
This value can be given a name, using a `let` binding:
123+
This value can be given a name:
124124

125-
> let ns = range 0 999
125+
> ns = range 0 999
126126

127127
Now let's filter out all of those elements which do not meet the criterion. We can use the `filter` function from `Data.List`, by providing a predicate function as its first argument:
128128

129-
> let multiples = filter (\n -> mod n 3 == 0 || mod n 5 == 0) ns
129+
> multiples = filter (\n -> mod n 3 == 0 || mod n 5 == 0) ns
130130

131131
You can see the result by evaluating `multiples` if you like, or even check its type:
132132

Diff for: learn/getting-started/index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ <h4 id="setting-up-the-development-environment">Setting up the Development Envir
7272
* Tests OK.</code></pre>
7373
<p>If everything was built successfully, and the tests ran without problems, then the last line should state “Tests OK”.</p>
7474
<h4 id="installing-dependencies">Installing Dependencies</h4>
75-
<p>Dependencies can be installed using Bower:</p>
75+
<p>You should install the dependencies needed in this guide with Bower:</p>
7676
<pre><code>bower install purescript-lists --save</code></pre>
7777
<h4 id="working-in-psci">Working in PSCI</h4>
7878
<p>PSCi is the interactive mode of PureScript. It is useful for working with pure computations, and for testing ideas.</p>
@@ -118,10 +118,10 @@ <h4 id="solving-project-euler-1">Solving Project Euler #1</h4>
118118
<p>Let’s start by listing all of the natural numbers below 1000 as a list. We can do this using the <code>range</code> function from <code>Data.List</code>:</p>
119119
<pre><code>&gt; range 0 999</code></pre>
120120
<p>You should see a list with 1000 elements printed to the command line.</p>
121-
<p>This value can be given a name, using a <code>let</code> binding:</p>
122-
<pre><code>&gt; let ns = range 0 999</code></pre>
121+
<p>This value can be given a name:</p>
122+
<pre><code>&gt; ns = range 0 999</code></pre>
123123
<p>Now let’s filter out all of those elements which do not meet the criterion. We can use the <code>filter</code> function from <code>Data.List</code>, by providing a predicate function as its first argument:</p>
124-
<pre><code>&gt; let multiples = filter (\n -&gt; mod n 3 == 0 || mod n 5 == 0) ns</code></pre>
124+
<pre><code>&gt; multiples = filter (\n -&gt; mod n 3 == 0 || mod n 5 == 0) ns</code></pre>
125125
<p>You can see the result by evaluating <code>multiples</code> if you like, or even check its type:</p>
126126
<pre><code>&gt; multiples
127127
Cons 0 (Cons 3 (Cons 5 (Cons 6 (Cons ...

0 commit comments

Comments
 (0)