More fun with APL

Note: see the rest of the series so far.   I stum­bled across this post the oth­er day and prob­lem 2 seems like some­thing I can eas­i­ly do in APL since it essen­tial­ly requires you to inter­leave two arrays. The prob­lem is: Write a func­tion that com­bines two lists by alter­nat­ing­ly tak­ing ele­ments. For exam­ple: giv­en the …

More fun with APLRead More »

Fear and Loathing with APL

Hav­ing heard so much about APL from Phil Trelford (who is one of the lead­ers in the F# com­mu­ni­ty) I decid­ed to try it out too. For the unini­ti­at­ed, APL code looks every bit as mind-bend­ing and unbe­liev­able as scenes from John­ny Depp’s Fear and Loathing in Las Vegas. For exam­ple, the life func­tion below imple­ments …

Fear and Loathing with APLRead More »

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.