I want the Go package github.com/PsionicAlch/byteforge/datastructs/set to provide a generic unordered…
I want the Go package github.com/PsionicAlch/byteforge/datastructs/set to provide a generic unordered…: a task in MiMo-V2.6-RL-harbor-code: MiMo-V2.6-RL Code (Harbor) (Harbor dataset). A concrete session should work like this: s := set.FromSlice( int{1, 2, 2, 3}) has size 3, contains 1, 2, and 3…
The task
A concrete session should work like this: `s := set.FromSlice([]int{1, 2, 2, 3})` has size 3, contains 1, 2, and 3, and does not contain 4; after `s.Push(4, 4)`, size is 4; `s.Remove(2)` returns true and makes `s.Contains(2)` false; a second `s.Remove(2)` returns false. `Peek` on a non-empty set returns one current…
Part of FineEnvs/MiMo-V2.6-RL-harbor-code.