modern.tools: make a graph of using list
parent
c279cf6a70
commit
3a164fb648
|
@ -1,6 +1,6 @@
|
||||||
! Copyright (C) 2019 Doug Coleman.
|
! Copyright (C) 2019 Doug Coleman.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: assocs combinators.short-circuit kernel modern
|
USING: assocs combinators.short-circuit graphviz kernel modern
|
||||||
modern.compiler modern.out modern.slices sequences
|
modern.compiler modern.out modern.slices sequences
|
||||||
sequences.extras ;
|
sequences.extras ;
|
||||||
IN: modern.tools
|
IN: modern.tools
|
||||||
|
@ -26,3 +26,7 @@ IN: modern.tools
|
||||||
] if
|
] if
|
||||||
] map-literals harvest concat harvest
|
] map-literals harvest concat harvest
|
||||||
] assoc-map ;
|
] assoc-map ;
|
||||||
|
|
||||||
|
: vocabs>graph ( vocabs -- graph )
|
||||||
|
[ <graph> ] dip vocabs>using-tool2
|
||||||
|
[ [ add-edge ] with each ] assoc-each ;
|
Loading…
Reference in New Issue