orc-lang / orc

Orc programming language implementation
https://orc.csres.utexas.edu/
BSD 3-Clause "New" or "Revised" License
41 stars 3 forks source link

Metadata for records and functions #88

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Jay has asked for two kinds of metadata on Orc values, to create some programs: 
iteration over entries of records, and arity of functions.

I propose to add two library sites, Keys and Arity. 

Keys(r) returns a list of all keys in the record r; the list may be empty if r 
is empty. If r is not a record, Keys(r) halts.

Arity(f) returns the integer arity of the function f. f must be a closure 
created by Orc. If f is not a closure, Arity(f) halts.

Original issue reported on code.google.com by dkitc...@gmail.com on 25 Oct 2011 at 6:42

GoogleCodeExporter commented 9 years ago

Original comment by dkitc...@gmail.com on 25 Oct 2011 at 6:43

GoogleCodeExporter commented 9 years ago
(just cleaning up -- accepting "New" issues)

Original comment by jthywissen on 6 Jul 2012 at 9:58

GoogleCodeExporter commented 9 years ago

Original comment by jthywissen on 9 Sep 2013 at 10:09

GoogleCodeExporter commented 9 years ago

Original comment by jthywissen on 12 Sep 2013 at 9:02

GoogleCodeExporter commented 9 years ago

Original comment by jthywissen on 12 Sep 2013 at 6:23

GoogleCodeExporter commented 9 years ago

Original comment by jthywissen on 2 Sep 2014 at 7:35