PasteRack.org
Paste # 40022
2018-11-06 10:30:59

Fork as a new paste.

Paste viewed 2889 times.


Embed:

  1. #lang racket
  2. (string-append (substring (1 string-length "abcde") (string-ref "abcde" 0)))

=>

application: not a procedure;

 expected a procedure that can be applied to arguments

  given: 1

  arguments...:

   #<procedure:string-length>

   "abcde"