Changeset 1392


Ignore:
Timestamp:
Apr 5, 2012, 11:13:33 AM (13 years ago)
Author:
George Lilly
Message:

added to C0XF2N ADDINN -add if not null

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fmts/trunk/p/C0XF2N.m

    r1390 r1392  
    517517 Q
    518518 ;
     519ADDINN(ZG,ZS,ZARY) ; ADD IF NOT NULL
     520 ; ZG IS THE GRAPH NAME, PASSED BY VALUE
     521 ; ZS IS THE SUBJECT, PASSED BY VALUE
     522 ; ZARY IS AN ARRAY, PASSED BY REFERENCE OF THE PREDICATE AND OBJECT
     523 ;  FORMAT IS ZARY(PRED)=OBJ
     524 N ZI S ZI=""
     525 F  S ZI=$O(ZARY(ZI)) Q:ZI=""  D  ;
     526 . I ZARY(ZI)'="" D  ;
     527 . . D ADD^C0XF2N(ZG,ZS,ZI,ZARY(ZI))
     528 . . W !,"ADDING",ZI," ",ZARY(ZI)
     529 ;ZWR ZARY
     530 Q
     531 ;
    519532BULKLOAD(ZBFDA) ; BULK LOADER FOR LOADING TRIPLES INTO FILE 172.101
    520533 ; USING GLOBAL SETS INSTEAD OF UPDATE^DIE
Note: See TracChangeset for help on using the changeset viewer.