Skip to content

Commit 1ffa640

Browse files
Update lib-array.md
1 parent 0a2cf4a commit 1ffa640

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

lib-array.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,59 @@
11
<link rel="stylesheet" type="text/css" href="styles.css">
22

3-
### `[] : (base-type[], U64) -> base-type`
3+
### `[] : (&base-type, U64) -> base-type`
44

5-
### `set[] : (base-type[], U64, base-type) -> base-type`
5+
### `set[] : (&base-type, U64, base-type) -> base-type`
66

7-
### `+ : (base-type[], U64) -> base-type[]`
7+
### `+ : (&base-type, USize) -> &base-type`
88

99
Pointer arithmetic.
1010

11-
### `+ : (base-type[], I64) -> base-type[]`
11+
### `+ : (&base-type, ISize) -> &base-type`
1212

1313
Pointer arithmetic.
1414

15-
### `== : (base-type[], base-type[]) -> Bool`
15+
### `== : (&base-type, &base-type) -> Bool`
1616

1717
Pointers are have linear addresses.
1818

19-
### `!= : (base-type[], base-type[]) -> Bool`
19+
### `!= : (&base-type, &base-type) -> Bool`
2020

2121
Pointers are have linear addresses.
2222

23-
### `< : (base-type[], base-type[]) -> Bool`
23+
### `< : (&base-type, &base-type) -> Bool`
2424

2525
Pointers are have linear addresses.
2626

27-
### `<= : (base-type[], base-type[]) -> Bool`
27+
### `<= : (&base-type, &base-type) -> Bool`
2828

2929
Pointers are have linear addresses.
3030

31-
### `> : (base-type[], base-type[]) -> Bool`
31+
### `> : (&base-type, &base-type) -> Bool`
3232

3333
Pointers are have linear addresses.
3434

35-
### `>= : (base-type[], base-type[]) -> Bool`
35+
### `>= : (&base-type, &base-type) -> Bool`
3636

3737
Pointers are have linear addresses.
3838

39-
### `close : base-type -> base-type[]`
39+
### `close : base-type -> &base-type`
4040

4141
`close` tries to seal a value into a new indirect memory region.
4242

43-
### `open : base-type[] -> base-type`
43+
### `open : &base-type -> base-type`
4444

4545
`open` tries to open a value from an indirect memory region.
4646

4747
### `open : base-type -> base-type`
4848

4949
If a value is already directly accessible, then `open` is a noop.
5050

51-
### `& : LocalVariable+base-type -> base-type[]`
51+
### `& : LocalVariable+base-type -> &base-type`
5252

5353
Local variables have logical addresses that can be referenced with `&`.
5454

55-
### `& : GlobalVariable+base-type -> base-type[]`
55+
### `& : GlobalVariable+base-type -> &base-type`
5656

5757
Global variables have logical addresses that can be referenced with `&`.
58+
59+
### `.into : (x,Type<&x>) -> &x`

0 commit comments

Comments
 (0)