Created
September 8, 2017 08:10
-
-
Save rchaser53/7fdf020412b08266a5735393dd666541 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|hoge| | |
hoge := array collect: [ :elem | | |
| dict | | |
dict := Dictionary new. | |
dict at: #base put: elem. | |
dict at: #translated put: (self trans: elem). | |
dict | |
]. | |
hoge := hoge asOrderedCollection | |
sorted: [:a :b | | |
self halt. | |
(a at: #translated) < (b at: #translated) | |
]. | |
hoge := hoge collect: [ :elem | | |
elem at: #base. | |
]. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment