Last active
March 18, 2021 22:43
-
-
Save konfou/a95e6b680b8261ae35fa2bd27a255aa1 to your computer and use it in GitHub Desktop.
Revisions
-
konfou revised this gist
Mar 18, 2021 . No changes.There are no files selected for viewing
-
konfou revised this gist
Mar 18, 2021 . 1 changed file with 0 additions and 17 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,17 +0,0 @@ -
konfou created this gist
Oct 31, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ """ @do begin body end when condition Macro emulating a do-until construct. """ @eval macro $(:do)(body, when::Symbol, condition) quote while true $body if $condition break; end; end end |> esc end This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ % way 1 while true $body if not ($condition) break; end end % way 2 function body $body end %do body while $condition; body end