Skip to content

Commit

Permalink
Added runnable doc
Browse files Browse the repository at this point in the history
  • Loading branch information
macta committed Mar 6, 2019
1 parent 1e5c27d commit 159f088
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Collections-Unordered/Bag.class.st
Expand Up @@ -79,6 +79,7 @@ Bag >> asBag [
{ #category : #converting }
Bag >> asDictionary [
"Answer a Dictionary with values and counts (a copy)"
"(Bag newFrom: 'aabbbc') asDictionary >>> { 'a'->2. 'b'->3. 'c'->1 }"

^self valuesAndCounts copy
]
Expand Down

0 comments on commit 159f088

Please sign in to comment.