Skip to content

Commit

Permalink
Spec now says std.makeArray(0, null) and std.filter(null, []) are err…
Browse files Browse the repository at this point in the history
…ors.
  • Loading branch information
sparkprime committed Oct 17, 2017
1 parent e68c0e4 commit a522815
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions doc/language/spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -1606,14 +1606,18 @@ <h4 id="execution">Execution</h4>

<div class="sequent-rule"> \[\rule{makeArray} {
e ↓ n
\\
e' ↓ f ∈ Function
} {
\texttt{std.makeArray}(e, e') ↓ \array{e'(0) \ldots e'(n - 1)}
\texttt{std.makeArray}(e, e') ↓ \array{f(0) \ldots f(n - 1)}
} \] </div>

<div class="sequent-rule"> \[\rule{filter} {
e ↓ f ∈ Function
\\
e' ↓ \array{e_0 \ldots e_{n - 1}}
\\
j_1 \ldots j_m = \{ i \ |\ e(e_i) ↓ \true \}
j_1 \ldots j_m = \{ i \ |\ f(e_i) ↓ \true \}
} {
\texttt{std.filter}(e, e') ↓ \array{e_{j_1} \ldots e_{j_m}}
} \] </div>
Expand Down

0 comments on commit a522815

Please sign in to comment.