shrub/pkg/base-dev/mar/kelvin.hoon

29 lines
566 B
Plaintext
Raw Normal View History

2022-10-14 06:36:33 +03:00
|_ kal=waft:clay
++ grow
|%
++ mime `^mime`[/text/x-kelvin (as-octs:mimes:html hoon)]
2022-10-14 06:36:33 +03:00
++ noun kal
++ hoon
%+ rap 3
%+ turn
%+ sort
~(tap in (waft-to-wefts:clay kal))
|= [a=weft b=weft]
?: =(lal.a lal.b)
(gte num.a num.b)
(gte lal.a lal.b)
|= =weft
(rap 3 '[%' (scot %tas lal.weft) ' ' (scot %ud num.weft) ']\0a' ~)
::
++ txt (to-wain:format hoon)
--
++ grab
|%
2022-10-14 06:36:33 +03:00
++ noun waft:clay
++ mime
|= [=mite len=@ud tex=@]
2022-10-14 06:36:33 +03:00
(cord-to-waft:clay tex)
--
++ grad %noun
--