Skip to content

Commit

Permalink
block left fill
Browse files Browse the repository at this point in the history
  • Loading branch information
aa1024 committed Apr 15, 2018
1 parent 52aae11 commit 41966a2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libs/str.q
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ sfl:{neg[x]$string y}
/@returns String right padded with space
sfr:{x$string y}

/@function sflb @desc Space fill from left for list of strings
/ @param int
/ @param String
/@returns String left padded with space
sflb:{sfl[max count each string x] each x}



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

0 comments on commit 41966a2

Please sign in to comment.