github.com/m4gshm/gollections@v0.0.13-0.20240331203319-a34a86e58a24/internal/examples/collection/mutable/omap.go (about)

     1  package mutable
     2  
     3  import (
     4  	"github.com/m4gshm/gollections/collection/mutable/ordered"
     5  	"github.com/m4gshm/gollections/collection/mutable/ordered/map_"
     6  	"github.com/m4gshm/gollections/k"
     7  )
     8  
     9  var (
    10  	//
    11  	_ *ordered.Map[int, string] = map_.Of(k.V(1, "1"), k.V(2, "2"), k.V(3, "3"))
    12  	_ *ordered.Map[int, string] = ordered.NewMapOf(
    13  		/*order  */ []int{3, 1, 2},
    14  		/*uniques*/ map[int]string{1: "2", 2: "2", 3: "3"},
    15  	)
    16  )