protected static LpObject methods_(LpObject self, LpObject[] args, LpObject block = null) { var keys = new List <string>(); foreach (string k in self.methods.Keys) { keys.Add(k); } return(LpArray.initialize(keys.ToArray().Select((s) => LpString.initialize(s)).ToArray())); }
static LpObject map(LpObject self, LpObject[] args, LpObject block = null) { return(LpArray.initialize(self.arrayValues.Select((v) => block.funcall("call", block, new LpObject[] { v }, null)).ToArray())); }