Hacker News new | past | comments | ask | show | jobs | submit login

He gives this example:

  real, dimension(5) :: a = [ 2, 4, 6, 8, 10 ]
  integer, dimension(2) :: i = [ 2, 4 ]

  print *, a(i)   ! prints 4. 8.
In APL the same is:

    a← 2 4 6 8 10
    a[2 4]
  4 8



I guess the speed of APL is comparable to python rather than Fortran?


If by Python you mean numpy, then yes.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: