To unsubscribe from this group and stop receiving emails from it, send an email to forum+un...@jsoftware.com.
An alternative (probably funnier than practical) approach is to first accumulate the function using J's gerunds, then apply noun C to the constructed verb.
NB. Example defs. C =: 42 73 17 37 f =: - NB. x bondLeft y creates a gerund representing verb with name x bonded with noun y as left argument. bondLeft =: ([: ,@< '&' ,&< (,&<~ '0'&;))"0 'f' bondLeft 3 ┌─────────────┐ │┌─┬─────────┐│ ││&│┌─────┬─┐││ ││ ││┌─┬─┐│f│││ ││ │││0│3││ │││ ││ ││└─┴─┘│ │││ ││ │└─────┴─┘││ │└─┴─────────┘│ └─────────────┘ ('f' bondLeft 3)`:6 3&f NB. We use bondLeft to create a gerund representing f composed with itself 9 times with bonded left arguments. gerund =: ]F.:('@:' ,:@:<@:(,&<) ,~) 'f'&bondLeft >: i. 9 f9 =: gerund`:6 f9 9&f@:(8&f)@:(7&f)@:(6&f)@:(5&f)@:(4&f)@:(3&f)@:(2&f)@:(01&f) f9 C _37 _68 _12 _32 NB. Check that the result is correct. 9 f 8 f 7 f 6 f 5 f 4 f 3 f 2 f 1 f C _37 _68 _12 _32
Wiadomość napisana przez Henry Rich <henry...@gmail.com> w dniu 31.08.2025, o godz. 18:54:
Wiadomość napisana przez Marcin Żołek <marcin...@students.mimuw.edu.pl> w dniu 31.08.2025, o godz. 21:38: