I've used this, courtesy of Dan Bron, for years:
whereDefined=: 3 : '(4!:4{.;:y) {:: (4!:3''''),<''Source of definition not
found for '',''.'',~y'On Sat, Mar 7, 2020 at 1:47 PM 'robert therriault' via Programming < [email protected]> wrote: > Mind blown. Would there not be a good argument to have it combined into a > defined verb? > > origin =: (4!:3 '' ) {::~ (4!:4 @ <) > origin 'echo' > /Users/bobtherriault/j901/system/main/stdlib.ijs > origin 'init' > /users/bobtherriault/j901/addons/ide/jhs/jfiles.ijs > origin 'init_jhs_' > /users/bobtherriault/j901/addons/ide/jhs/core.ijs > > Cheers, bob > > > > On Mar 7, 2020, at 09:51, Brian Schott <[email protected]> wrote: > > > > This is a very handy trick. > > Because the Subject of this thread is so uninformative, I have Forwarded > it > > to myself after changing the Subject. > > > > On Sat, Mar 7, 2020 at 12:05 PM Raul Miller <[email protected]> > wrote: > > > >> 4!:4<'echo' > >> > >> 1 > >> > >> 1{::4!:3'' > >> > >> /j/system/main/stdlib.ijs > >> > >> > >> https://www.jsoftware.com/help/user/lib_stdlib.htm > >> > >> > >> Thanks, > >> > >> > >> -- > >> > >> Raul > >> > >> -- > > (B=) > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA Quantitative Consultant ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
