PasteRack.org
Paste # 49627
2018-06-14 10:00:54

Fork as a new paste.

Paste viewed 123 times.


Embed:

  1. #lang racket
  2.  
  3. (for/list ([i '("foo" "bar" "spam" eggs)])
  4.   (match i
  5.     [(? string?) (string-upcase i)]
  6.     [(? symbol?) (void)]))

=>

'("FOO" "BAR" "SPAM" #<void>)