Skip to content

Commit

Permalink
Update vector comprehension syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jpconsuegra committed Mar 6, 2024
1 parent f56c1cd commit f28941c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/vectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ let numbers = [1,2,3,4,5,6,7,8,9] in print(numbers[7]);
An implicit vector can be created using what we call a generator pattern, which is always an expression Here's an example:

```js
let squares = [x^2 | x in range(1,10)] in print(x);
let squares = [x^2 || x in range(1,10)] in print(x);
// prints 2, 4, 6, 8, 10, ...
```

Expand Down

0 comments on commit f28941c

Please sign in to comment.