read 1!:1@< write 1!:2 < 'hi there' write 'foo' read'foo' hi there 'changed the file' write 'foo' to_char 3!:1 to_internal 3!:2 (%i.3 4 5 6) write 'foo' |rank error: write | (%i.3 4 5 6) write'foo' |[-7] history-20091013 read_list to_internal@read write_list ([: to_char [) write ] (%i.3 4 5 6) write_list 'foo' read'foo' h??UUUUUU???UUUUUU?$I$I??qq??F┴]tE?UUUUUU?┼;├;?$I$I?┬┬┬┬┬┬???qq?(??┘a┘a?F┴]tE?d! YB?UUUUUU?{┼Gz?┼;├;?h/?$I$I?{─a?┬┬┬┬┬┬?┌B!??|??AA?qq?к┼?(?─A─A??┘?┘a┘a?}A_З?F┴]tE?┴l└l?d! YB?W┌+ɕ?UUUUUU?9/?{┼Gz?┼┼┼┼┼┼?┼;├;?x+R?h/?┐)A?$I$I?p}?{─a? 'u_[?┬┬┬┬┬┬?;ڼOqɐ?┌B!?┌A┌A?? ?|?g1??ہv`?AA? V،?qq??к┼?O贁N?(?cj`?─A─A?3┌??H?┘?k?┘a┘a?┘┘┘┘┘┘?}A_Ї?ȤxL?F┴]tE?p \?┴l└l?┴h└h?d! YB?└X`?W┌+Ʌ?X0Ҏ?UUUUUU?┤?9/?[R֯?{┼Gz?beF?┼┼┼┼┼┼?,?┼;├;?┼8├8?x+R?┌+J#?h/?,Mɂ?┐)A?5'Ps?$I$I?x!?p}?ρ?{─a?┐┘┬┘? 'u_[?┬5┬5?┬┬┬┬┬┬?k?;ڼOqɀ?┌h ?┌B!?Mb?┌A┌A?@ ??? ?qBJeD?|?~?g1~?t:W~?~?}?ہv`}?4,Tw}?AA}?tn }? V|?^|?qq|??|?|?+{?к┼{?3=l}{?O贁N{?ـl@6 {?(z?p─pz?cj`z?m─Цmz?─A─Az?Kz└z?3┌y?Ny?y?r py?Hy?)I y?┘x?┘0x?kx?Jx?┘a┘ax?ݾzek?к┼k?#┘+k?3=l}k?ek?O贁Nk?JH7k?ـl@6 k?"1K k?(j?^j?p─pj?/j?cj`j?Y0Qj?m─Цmj?JhAWj?─A─Aj?Ň*,j?Kz└j?──j?3┌i?-hk┴i?Ni?┌U$i?i? /i?r pi?w \i?Hi?,4i?)I i?Ր┐O i?┘h??7zRh?┘0h?:bοh?kh?h?Jh?'th?┘a┘ah?┼xOh?ݾz;/;/"1 chars 10$6 |domain error | >;/;/"1 chars 10$6 |[-30] history-20091013 ;/;/"1 chars 2$6 +-------------+-+-+-+-+-+-+ |+-+-+-+-+-+-+|b|v|s|w|n|l| ||u|p|k|b|m|q|| | | | | | | |+-+-+-+-+-+-+| | | | | | | +-------------+-+-+-+-+-+-+ ;/;/"1 chars 3$6 +-------------+-------------+-+-+-+-+-+-+ |+-+-+-+-+-+-+|+-+-+-+-+-+-+|i|z|c|d|m|b| ||c|d|p|z|u|o|||i|x|w|z|m|n|| | | | | | | |+-+-+-+-+-+-+|+-+-+-+-+-+-+| | | | | | | +-------------+-------------+-+-+-+-+-+-+ _6 }. ;/;/"1 chars 3$6 +-------------+-------------+ |+-+-+-+-+-+-+|+-+-+-+-+-+-+| ||v|g|q|p|x|n|||o|q|u|k|r|j|| |+-+-+-+-+-+-+|+-+-+-+-+-+-+| +-------------+-------------+ db =: _6 }. ;/;/"1 chars 1000000$6 #db 999999 db write_list 'foo' ls |value error: ls |[-37] history-20091013 system 2!:0 system' ls -al foo' -rwxr-xr-x 1 jhowland jhowland 167999852 Oct 14 16:40 foo ''write'foo' fact =: monad def 0 if. y. < 2 do. 1 else. y. * fact y. - 1 end. ) fact 7 5040 ! 7 5040 c1 =: 7&* c2 =: 6&* c3 =: 5&* c3 =: 4&* c4 =: 4&* c5 =: 3&* c6 =: 2&* c1 c2 c3 c4 c5 c6 1 4032 c3 4&* c3 =:5&* c4 4&* c1 c2 c3 c4 c5 c6 1 5040 make 0!:0@< make_z_ 0!:0@< lecture 0!:11&< make_abc_'stack.object.ijs' names locale abc base j stddefs z names_abc_ '' data stack stack_abc_ <'type' stack stack_abc_ 'foo';i.10 In root object: foo: Invalid method name. cat 3 : 'system ''cat '',y.' cat 'root.object.ijs' NB. The root object NB. This object has no data structure and NB. implements only the type method. root_object_z_ =. monad def 0 ('method' ; 'value') =. 2 take y. if. method -: 'type' do. 'root object' else. 'In root object: ',method,': Invalid method name.' end. ) root_object <'type' root object #& 1 #&1 #$ 1 0 #$ ,1 1 0 1 people +-------+--------+--------------------------+ |konstam|patricia|newspaper writer | +-------+--------+--------------------------+ |konstam|aaron |computer science professor| +-------+--------+--------------------------+ |eggen |maury |computer science professor| +-------+--------+--------------------------+ |howland|jack |computer science professor| +-------+--------+--------------------------+ |howland|glynne |nail manufacturer | +-------+--------+--------------------------+ |clinton|bill |president usa | +-------+--------+--------------------------+ |clinton|hillary |first lady usa | +-------+--------+--------------------------+ |perot |ross |wanted to be president | +-------+--------+--------------------------+ |bush |george |used to be president | +-------+--------+--------------------------+ key =: 1 : '> @ (m&{) @ >' 0 key people konstam konstam eggen howland howland clinton clinton perot bush 1 key people patricia aaron maury jack glynne bill hillary ross george #people 9 (1 1 ,7$0)#people +-----------------------------------+------------------------------------------+ |+-------+--------+----------------+|+-------+-----+--------------------------+| ||konstam|patricia|newspaper writer|||konstam|aaron|computer science professor|| |+-------+--------+----------------+|+-------+-----+--------------------------+| +-----------------------------------+------------------------------------------+ key 1 : '> @ (m&{) @ >' adverb 1 conj 2 verb 3 monad 3 dyad 4 noun 0 + key people |value error: m | >@( m&{)@>