in conversation, michal wallace suggested that we would profit from having a tool which makes it easy to rewrite a long function as a short function with calls to short subfunctions. michal is currently working on such a factoring tool which uses a gui and which doesn't depend on k. i decided that it wouldn't be difficult to add this functionality to the 1010 k parser. the k tool would take a text file containing a marked-up function as input and produce an executable k script containing the factored code: the transformed input function and the several subfunctions indicated by the markup code. here's an example. the input file is a k script, f.k: get:{[u;c;r;m;q] if[1=#^m[];:(m;nl q)] / exit on empty trace table I::q _sm"*