Calling J from Python

Stef Mientki S.Mientki-nospam at mailbox.kun.nl
Mon Feb 5 14:08:54 EST 2007


> 
> Mh, just looking at some "advanced" J source taken from
> wikipedia.org makes me feel sick:
> 
> | Here's a J program to calculate the average of a list of numbers:
> |    avg=: +/ % #
> |    avg 1 2 3 4
> | 2.5
> 
And here is the Python way of calculating the average
 >>> mean([1,2,3,4])
2.5

sorry, I don't see any advantage.

cheers,
Stef Mientki



More information about the Python-list mailing list