Beispiel #1
0
 public static void Saw(IStackList<object> stack)
 {
     if (stack.HasA<int>())
     {
         var x = 0;
         var width = stack.Pop<int>();
         var seq = SequenceFactory.From(() => Math.Pow(x++ % width, 2));
         stack.Push(seq);
     }
 }
Beispiel #2
0
 public static void Base(IStackList<object> stack)
 {
     var x = 0;
     var seq = SequenceFactory.From(() => x++);
     stack.Push(seq);
 }
Beispiel #3
0
 public static void Para(IStackList<object> stack)
 {
     var x = 0;
     var seq = SequenceFactory.From(() => Math.Pow(x++, 2));
     stack.Push(seq);
 }
Beispiel #4
0
 public static void Noise(IStackList<object> stack)
 {
     var seq = SequenceFactory.From(Probability.Normal);
     stack.Push(seq);
 }