Skip to content

Commit

Permalink
PR feedback: uint->describe const-expr
Browse files Browse the repository at this point in the history
  • Loading branch information
philrz committed Sep 16, 2024
1 parent d9b2c0c commit b57d9ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 0 additions & 1 deletion docs/language/conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ in the Zed documentation include several type classes as follows:
* _any_ - any Zed data type
* _float_ - any floating point Zed type
* _int_ - any signed or unsigned Zed integer type
* _uint_ - any unsigned Zed integer type
* _number_ - either float or int
* _record_ - any [record](../formats/zson.md#251-record-type) type

Expand Down
12 changes: 7 additions & 5 deletions docs/language/operators/top.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@
### Synopsis

```
top <uint> <expr> [, <expr> ...]
top <const-expr> <expr> [, <expr> ...]
```
### Description

The `top` operator returns the top N values from a sequence sorted in descending
order by one or more expressions. `top` is functionally similar to
[`sort`](sort.md) but is less resource intensive because only the top
N values are stored in memory (i.e., values less than the minimum are
discarded).
order by one or more expressions. N is given by `<const-expr>`, a compile-time
constant expression that evaluates to a positive integer.

`top` is functionally similar to [`sort`](sort.md) but is less resource
intensive because only the top N values are stored in memory (i.e., values
less than the minimum are discarded).

### Examples

Expand Down

0 comments on commit b57d9ac

Please sign in to comment.