- 
                Notifications
    
You must be signed in to change notification settings  - Fork 88
 
alist ref
        Chris Petersen edited this page Sep 11, 2015 
        ·
        2 revisions
      
    Returns the value associated with the given key, or the fallback (default #f) if not found
| Parameter | Description | 
|---|---|
| alist | association list | 
| key | list key to lookup | 
| fallback | fallback value | 
> (define a '((1 "2")(3 4)))
> (alist-ref a 1)
"2"
> (alist-ref a 4 'undefined)
undefined
> (alist-refstr a 3 "")
"4"
> (alist-refnum a 1 0)
2
> (set! a (alist-set a 1 "replaced" 5 'new))
> (alist-ref a 1)
"replaced"
> (set! a (alist-delkeys a 1 3))
> (alist-ref a 1)
#f
- 
- accelerometer
 - alist
 - audio
 - audioaux
 - base64
 - btle-scan
 - camera
 - cdb
 - cgi
 - config
 - csv
 - curl
 - digest
 - dmtx
 - download
 - eventloop
 - fcgi
 - fft
 - generalized-arrays
 - gps
 - graph
 - gyro
 - hidapi
 - hpdf
 - html
 - httpsclient
 - hybridapp
 - json
 - lmdb
 - ln_core
 - ln_glcore
 - ln_glgui
 - ln_store
 - localization
 - localization_gui
 - localnotification
 - magnetometer
 - mdns
 - mqtt
 - mqtt-store
 - multitouch
 - oauth
 - orientation
 - p256ecdsa
 - png
 - portaudio
 - pregexp
 - pressure
 - prime
 - pushnotification
 - redcap
 - rsa
 - rtaudio
 - rupi
 - rotation
 - sanestring
 - scheduler
 - serial
 - sets
 - settings
 - simplexnoise
 - sqlite
 - ssax
 - syntax-case
 - timestamp
 - ttf
 - uiform
 - url
 - uuid
 - vibrate
 - videoplayer
 - watchdog
 - website
 - xml
 - zip