Skip to content

Commit 0d41d39

Browse files
committed
Add warning about unusual List type
This syntax may change in a future SimplicityHL release; see BlockstreamResearch/SimplicityHL#288
1 parent bec2b55 commit 0d41d39

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/simplicityhl-reference/type.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ Arrays are always of finite length.
8686
8787
## List Types
8888

89+
**SimplicityHL List types work differently from what you might expect from other languages. Please see their details and limitations below.** Notably, a List type must be declared with a length that is an exact power of two, and the List can never hold the full number of items indicated by its declared length.
90+
8991
| Type | Description | Values |
9092
|---------------------------|---------------------|------------------------------------------------------|
9193
| `List<A, 2>` | <2-list | `list![]`, `list![a1]` |

0 commit comments

Comments
 (0)