Sierpinski carpet: Difference between revisions

m
(→‎{{header|J}}: Golfed code added)
Line 3,908:
End Sub</lang>
 
=={{header|Mathematica}}/{{header|Wolfram Language}}==
Replace a empty spot with a 3x3 empty matrix, and replace a full spot with an empty spot surrounded by 8 full spots:
<lang Mathematica>full={{1,1,1},{1,0,1},{1,1,1}}
1,111

edits