Wednesday, October 1, 2008

Using Nill to Delete structures instead of Kill command

It is a safer practice to use the following routine when you need to delete a structure instead of using the K command.

so if the structure looked like this

:["LUNCH","APPLE"]
:["LUNCH","COKE"]
:["LUNCH","HOT DOG"]

"LUNCH"^A,""^B,DO{>:[A,B]^B ""^:[A,B]}

Performing a physical next on the structure and placing a value in A will delete everything in "LUNCH".

0 comments: