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

I like the permutation example, make a n^n array of 1...n there by ending up with n choose n with replacement, create a boolean mask of which ones have all n numbers and return.

There was a post here last week about BEAM needs an apl that pointed out the basic idiom of APL is take an array make a boolean mask then select on that mask which I thought was a very straight forward explaination of how APL differs from Matlab or Numpy.

And it is a very different approach: make everything take what you want vs make exactly and nothing more than what you want.




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

Search: