Esempio n. 1
0
File: LpObject.cs Progetto: baban/lp
        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()));
        }
Esempio n. 2
0
File: LpArray.cs Progetto: baban/lp
 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()));
 }