Skip to content

Commit

Permalink
right fill
Browse files Browse the repository at this point in the history
  • Loading branch information
aa1024 committed Apr 14, 2018
1 parent 75bff63 commit 88cf42e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libs/str.q
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ fc:{?[x=lower x;upper x;lower x]}
/@returns String left padded with space
sfl:{neg[x]$string y}

/@function sfr @desc Space fill from right
/ @param int
/ @param String
/@returns String right padded with space
sfr:{reverse neg[x]$reverse string y}

/@function zfl @desc zero fill
/ @param int
Expand Down

0 comments on commit 88cf42e

Please sign in to comment.