Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
aa1024 committed Apr 14, 2018
1 parent 88cf42e commit d762570
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion libs/str.q
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,21 @@ sfl:{neg[x]$string y}
/ @param int
/ @param String
/@returns String right padded with space
sfr:{reverse neg[x]$reverse string y}
sfr:{x]$reverse string y}

/@function zfl @desc zero fill
/ @param int
/ @param String
/@returns String left padded with zero
zfl:{"0"^neg[x]$string y}


/@function zfr @desc zero fill from right
/ @param int
/ @param String
/@returns String right padded with zero
zfl:{"0"^reverse neg[x]$reverse string y}

/@function tu @desc to upper
tu:upper

Expand Down

0 comments on commit d762570

Please sign in to comment.