Skip to content

Commit

Permalink
README fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Smoren committed Mar 10, 2024
1 parent 36db5cd commit 5c71355
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ $originalView.subview(new SliceSelector('::-1')).toArray(); // [5, 4, 3, 2, 1]
$originalView.subview('::-1').toArray(); // [5, 4, 3, 2, 1]

$originalView.subview(new MaskSelector([true, false, true, false, true])).apply(fn ($x) => x * 10);
print_r(originalArray); // [10, 2, 30, 4, 50]
print_r($originalArray); // [10, 2, 30, 4, 50]
```

### Subarrays
Expand All @@ -78,7 +78,7 @@ $originalView[new SliceSelector('::-1')]; // [5, 4, 3, 2, 1]
$originalView['::-1']; // [5, 4, 3, 2, 1]

$originalView[new MaskSelector([true, false, true, false, true])] = [10, 30, 50];
print_r(originalArray); // [10, 2, 30, 4, 50]
print_r($originalArray); // [10, 2, 30, 4, 50]
```

### Combining subviews
Expand Down

0 comments on commit 5c71355

Please sign in to comment.