You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new KeyOperations library that defines functions like:
keysort
keyunion
keyintersect
keysetdiff
keysymdiff
for dictionary-like objects, such as Base.NamedTuple, Base.Dict, and Dictionaries.Dictionary (which could be implemented in a package extension KeyOperationsDictionariesExt).
Great – I was really interested to see how the named tuples in Julia can actually function as a very fast, heterogeneous dictionary. That makes them a very powerful datatype to have, but of course the interface could be nicer for using them in this way and more fleshed out. So this PR should help with that.
Create a new
KeyOperations
library that defines functions like:keysort
keyunion
keyintersect
keysetdiff
keysymdiff
for dictionary-like objects, such as
Base.NamedTuple
,Base.Dict
, andDictionaries.Dictionary
(which could be implemented in a package extensionKeyOperationsDictionariesExt
).Some of this was already started as part of the
Sectors
library to help implement fusion ofCategoryProduct
s that have named categories, though with names likesort_keys
,union_keys
, etc. (see https://github.com/ITensor/ITensors.jl/blob/v0.3.55/NDTensors/src/lib/Sectors/src/namedtuple_operations.jl).Some related discussions in the Julia ecosystem:
@emstoudenmire
The text was updated successfully, but these errors were encountered: