Skip to content

lang-library/racket-access

Repository files navigation

Access Path for Racket

JavaCommons Technologies <javacommons@gmail.com>

 (require access) package: [access](https://pkgs.racket-lang.org/package/access)

This basically provides !.

1 Example and usage

1. Example and usage

#! /usr/bin/env racket                                                                
#lang racket                                                                          
(require access)                                                                      
                                                                                      
(define x (hash 'abc '(777 888)))                                                     
(! x (hash-ref ! 'abc) (list-ref ! 1)) ;; equivalent to (list-ref (hash-ref x 'abc) 1)
;; ==> 888