Skip to content

Commit

Permalink
Add forgotten immutability guarantee
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfirth authored and sorawee committed Aug 9, 2024
1 parent 7f29e89 commit 6380419
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,10 @@
#f
#f)

(string-join (for/list ([line (in-list all-lines)])
(string-trim line #:left? #f))
"\n"))
(string->immutable-string
(string-join (for/list ([line (in-list all-lines)])
(string-trim line #:left? #f))
"\n")))

(define ((compose-formatter-map . fs) x)
(for/or ([f (in-list fs)])
Expand Down

0 comments on commit 6380419

Please sign in to comment.