Skip to content

pharo-containers/Containers-ChainedDictionary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Containers-ChainedDictionary

A dictionary of properties with a lookup in ancestors (also called environment in other languages).

https://github.com/pharo-containers/Containers-ChainedDictionary/workflows/currentStablePharo/badge.svg https://github.com/pharo-containers/Containers-ChainedDictionary/workflows/matrix/badge.svg Coverage Status License

Example

CTChainedDictionaryTest >> testChildrenPropertyAtOverridesParent [
	self connectChildParent.
	self
		assert: (self childEnvironment propertyAt: #P0inParent)
		equals: 50.
	self
		assert: (self childEnvironment propertyAt: #P1inChildren)
		equals: 12.
	self
		assert: (self childEnvironment parent propertyAt: #P1inChildren)
		equals: 24
]

This package is part of the Containers project: This project is to collect, clean, test and document alternate collection datastructures. Each package is modular so that users can only load the collection they need without 100 of related collections.

Loading

Metacello new
   baseline: 'ContainersChainedDictionary';
   repository: 'github://pharo-containers/Containers-ChainedDictionary';
   load.

If you want to depend on it

spec 
   baseline: 'ContainersChainedDictionary' 
   with: [ spec repository: 'github://pharo-containers/Containers-ChainedDictionary' ].

The best way to predict the future is to do it! Less talking more doing. [email protected]

About

A dictionary with lookup in parent dictionary

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published