Arc Forumnew | comments | leaders | submitlogin
Discovery: table lookup can take a default argument
3 points by akkartik 5730 days ago | discuss

   (tab key 34) => ; returns 34 instead of nil when key is not present
I found it when I came across the comment before ar-apply. I've sent kens a documentation patch.

Once I knew to look for it I found a couple of previous mentions: http://arclanguage.org/item?id=9525, http://arclanguage.org/item?id=8566 (tangential - it shows the code)

Incidentally, arcforum.searchyc.com is awesome, once I found it.

It makes me wish we could collect top-level resources on a page somewhere. We need that wiki after all (http://arclanguage.org/item?id=11088)