約122件1ページ目

日本語のみで絞り込む

2009/10/31 -Here's an example of how to use dict as an ordered set to filter out duplicate items while preserving order, thereby emulating an ordered set.

2026/4/30 -To create an ordered set, you can use the external ordered-set module, which maintains both uniqueness and insertion order. Install the module ...

An OrderedSet can be used as a bi-directional mapping between a sparse vocabulary and dense index numbers. As of version 3.1, it accepts NumPy arrays of index ...

2021/12/24 -An ordered set would be a data structure which supports the set API, but additionally guarantees that elements keep some specified order ( ...

2022/10/26 -An ordered set for Python? ... Maybe at this point the next step should be to create a PR [pull request] adding OrderedSet to collections.

2022/10/3 -The simplest way to create an ordered set in Python is to use the OrderedSet class. Note that this class is not included by default. You first ...

2025/9/1 -Sets are "ordered" by a function that resembles a random number generator (it's called a hash function); its results are strictly defined but ...

Works like a regular set, but remembers insertion order; · Is approximately 5 times faster than the pure Python implementation overall (and 5 times slower than ...

Set. Sets are used to store multiple items in a single variable. · Set Items. Set items are unordered, unchangeable, and do not allow duplicate values.

2017/11/17 -An ordered set is only possible when the elements to be stored have an ordering (i.e. a comparison method) in the first place - but that is not ...