2 ms·
array{ 1 2 3 } dict{ { "a" 1 } } graph{ { "a" "b" } { "b" "c" } { "c" "a" } } AVL{ { "a" 1 } { "b" 2 } } Factor has some syntax like this. All you have
by gre 3y ago
array{ 1 2 3 }
dict{ { "a" 1 } }
graph{ { "a" "b" } { "b" "c" } { "c" "a" } }
AVL{ { "a" 1 } { "b" 2 } }
Factor has some syntax like this. All you have to do is pass the `{...}` to the prefix (array/dict/graph/AVL) and it knows how to construct one.
https://github.com/factor/factor/blob/master/extra/trees/avl/avl.factor#L164 https://github.com/factor/factor/blob/master/extra/trees/avl...