Mastering Racket

4 views
Skip to first unread message

Brian Adkins

unread,
Feb 25, 2016, 9:06:38 AM2/25/16
to TriFunc
I've begin a six month crash course in mastering Racket in preparation for developing a web framework for the language. If any of you are curious about the language, I'll be filling up the following repository with tons of code this year (there's already a fair amount from previous work). The examples and exercises will be in various states of proficiency, but there are lots of good examples of the language.


Here's one nice example using the threading macro:

(define (abbreviate string)
  (~> string
      (string-split #px" |(?=[A-Z])")
      (filter non-empty-string? _)
      (map (λ (s) (substring s 0 1)) _)
      (string-join "")
      (string-upcase)))


And, if you have any interest in helping to create a new Racket web framework, let me know!

Brian
Reply all
Reply to author
Forward
0 new messages