-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Currently aliased functions show up twice:
frodo ~/Repos/github.com/skx/yal $ ./yal -h hms
hms
===
Return the current time as a string, formatted as 'HH:MM:SS'.
time:hms
========
Return the current time as a string, formatted as 'HH:MM:SS'.
zero-pad-single-number (num:number)
===================================
Return the given number, padded to two digits, as a string.
i.e. Add a '0' prefix to the specified number, for values less than ten.
This is designed to pad the hours, minutes, and seconds in (hms).
If we added an "Alias string" method to the primitives we could set that in the (alias ..)
, which would allow:
..
hms
===
This is an alias of the function (time:hms)
..
It wouldn't make a massive amount of difference, but it would be cute!
Metadata
Metadata
Assignees
Labels
No labels