1// compile
2
3// Copyright 2022 The Go Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
7package p
8
9type value[V comparable] struct {
10	node  *node[value[V]]
11	value V
12}
13
14type node[V comparable] struct {
15	index    *index[V]
16	children map[string]*node[V]
17}
18
19type index[V comparable] struct {
20	arrays []array[V]
21}
22
23type array[V comparable] struct {
24	valueMap map[int]V
25}
26
27var x value[int]
28var y value[*Column]
29
30type Column struct{ column int }
31