We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Turtle.Pop()
1 parent 324201f commit a05d068Copy full SHA for a05d068
1 file changed
Types/Turtle/Pop.ps1
@@ -0,0 +1,12 @@
1
+if ($this.'.Stack' -isnot [Collections.Stack]) {
2
+ return
3
+}
4
+
5
+if ($this.'.Stack'.Count -eq 0) {
6
7
8
9
+$popped = $this.'.Stack'.Pop()
10
+$this.PenUp().Goto($popped.Position.X, $popped.Position.Y).PenDown()
11
+$this.Heading = $popped.Heading
12
+return $this
0 commit comments