using ``H{ } zip-index-as``.
instead of ``<enum> [ swap ] H{ } assoc-map-as``.char-rename
parent
1ce733ef72
commit
abbefc96b9
|
@ -6,7 +6,7 @@ regexp.transition-tables sequences sets sorting ;
|
|||
IN: regexp.minimize
|
||||
|
||||
: table>state-numbers ( table -- assoc )
|
||||
transitions>> keys <enum> [ swap ] H{ } assoc-map-as ;
|
||||
transitions>> keys H{ } zip-index-as ;
|
||||
|
||||
: number-states ( table -- newtable )
|
||||
dup table>state-numbers transitions-at ;
|
||||
|
|
|
@ -51,7 +51,7 @@ CONSTANT: categories {
|
|||
<PRIVATE
|
||||
|
||||
MEMO: categories-map ( -- hashtable )
|
||||
categories <enum> [ swap ] H{ } assoc-map-as ;
|
||||
categories H{ } zip-index-as ;
|
||||
|
||||
CONSTANT: num-chars 0x2FA1E
|
||||
|
||||
|
|
Loading…
Reference in New Issue