Hello,

Its the third time I am trying to move from K to J without success.
Stopped and the 8th chapter of "Learning J", because its the half of
the book, but I cannot read and understand other programs, also cannot
write simple program.

Let me provide an example. on K I split IP-string: 1_'(0,&"."=" ",s)_
" ",s:"192.168.1.1"
I was trying to rewrite it on J, but I did not find _ (cut) or
something like that, which splits list by indexes.

I found another cut in J, so the solution is '.'cut'192.168.1.1', but
I have to understand it.
cut
' '&$: :([: -.&a: <;._2@,~)

Do I understand correct that function makes train of verbs without
round brackets?
So its (f g) where f =: ' '&$: and g =: :([: -.&a: <;._2@,~)
But it does not work:
g '192.168.1.1'
|syntax error

Why, how to read J expression? In K I just cut expression from let and
see all imtermediate results, in J it does not work.
Also, I cannot find anonymous function {} in K, but if I understand
correct in J it is prefferable to compose verbs.

Thank you.

-- 
Regards,
  Alexander.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to