Ver código fonte

egg timer done

master
Thorn Avery 4 anos atrás
pai
commit
40795a9d30
1 arquivos alterados com 16 adições e 0 exclusões
  1. +16
    -0
      201/week4/egg.hoon

+ 16
- 0
201/week4/egg.hoon Ver arquivo

@@ -0,0 +1,18 @@
|%
+$ effect (pair bone syscall)
+$ syscall [%wait path @da]
--
|_ [bowl:gall ~]
|= t=@da
?: (lth t now)
!!
^+ [*(list effect) +>.$]
:_ +>.$ :_ ~
[ost %wait /egg-timer t]
|= [=wire error=(unit tang)]
^+ [*(list effect) +>.$]
~& "Timer went off!"
[~ +>.$]
--

Carregando…
Cancelar
Salvar