Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import std.stdio;
- alias Clojure = void delegate();
- Clojure[] clojures;
- void main(){
- foreach(a; ["this is a test", "behold"])
- foreach(c; a)
- clojures ~= {write(c);};
- foreach(c; clojures)
- c();
- writeln;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement