Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

simplify array emitting code

  • Loading branch information...
commit 48a34c569dabb179a184ad25d248bcb9465cafcd 1 parent 4e7ec0c
@moritz authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/JSON/Tiny.pm
View
2  lib/JSON/Tiny.pm
@@ -31,7 +31,7 @@ multi to-json(Str:D $d) {
}
multi to-json(Array:D $d) {
return '[ '
- ~ (map { to-json($_) }, $d.values).join(', ')
+ ~ (map &to-json, $d.values).join(', ')
~ ' ]';
}
multi to-json(Hash:D $d) {

0 comments on commit 48a34c5

Please sign in to comment.
Something went wrong with that request. Please try again.