You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _generator/learn/getting-started/index.markdown
+4-4
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ If everything was built successfully, and the tests ran without problems, then t
53
53
54
54
#### Installing Dependencies
55
55
56
-
Dependencies can be installed using Bower:
56
+
You should install the dependencies needed in this guide with Bower:
57
57
58
58
bower install purescript-lists --save
59
59
@@ -120,13 +120,13 @@ Let's start by listing all of the natural numbers below 1000 as a list. We can d
120
120
121
121
You should see a list with 1000 elements printed to the command line.
122
122
123
-
This value can be given a name, using a `let` binding:
123
+
This value can be given a name:
124
124
125
-
> let ns = range 0 999
125
+
> ns = range 0 999
126
126
127
127
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:
128
128
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
130
130
131
131
You can see the result by evaluating `multiples` if you like, or even check its type:
<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>
119
119
<pre><code>> range 0 999</code></pre>
120
120
<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>> let ns = range 0 999</code></pre>
121
+
<p>This value can be given a name:</p>
122
+
<pre><code>> ns = range 0 999</code></pre>
123
123
<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>> let multiples = filter (\n -> mod n 3 == 0 || mod n 5 == 0) ns</code></pre>
124
+
<pre><code>> multiples = filter (\n -> mod n 3 == 0 || mod n 5 == 0) ns</code></pre>
125
125
<p>You can see the result by evaluating <code>multiples</code> if you like, or even check its type:</p>
0 commit comments