Skip to content

Commit

Permalink
Merge pull request #2 from raku-community-modules/pd-fix-and-improvement
Browse files Browse the repository at this point in the history
Pd fix and improvement
  • Loading branch information
patrickbkr authored Dec 3, 2024
2 parents 5c02d03 + 3010484 commit 0aa9764
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/PrettyDump.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ my sub pretty-dump($ds,
).dump: $ds
}

my constant &pd is export = &pretty-dump;
my sub pd(|c) is export {
pretty-dump(|c).put;
c.list[0]
}

# vim: expandtab shiftwidth=4

0 comments on commit 0aa9764

Please sign in to comment.