f=. {&1 0 : [:
   g=. -. : [:

Distinguish f and g, without the use of explicit control structures, ::, AR introspection, or other forms of cheating.

Spoiler:







   (f -: g) 1+9!:18''
0

Floating-point strikes again!
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to