Commits

Barry Schwartz committed eae6021

Add non-macro versions of collect. Shorten definitions of keyargs.

  • Participants
  • Parent commits 675ce79

Comments (0)

Files changed (1)

 namespace __keyargs__ with
   def collect f args hashpair@(_=>_) = collect f (hashpair:args);
   def collect f args last_arg        = f (reverse args) last_arg;
+  collect f args hashpair@(_=>_)     = collect f (hashpair:args);
+  collect f args last_arg            = f (reverse args) last_arg;
 end;
 
-def keyargs f next_arg = __keyargs__::collect f [] next_arg;
-keyargs f next_arg     = __keyargs__::collect f [] next_arg;
+def keyargs f = __keyargs__::collect f [];
+keyargs f     = __keyargs__::collect f [];
 
 //-------------------------------------------------------------------------