Skip to main content
deleted 35 characters in body
Source Link
Uriel
  • 13.3k
  • 4
  • 18
  • 45

APL (Dyalog), 20 1918 bytes

1 byte thanks to @ngn

∘.=⍨∘⍳⍪⊢÷⍨1+=⍨∘⍳⍪1÷¯1+4○*∘.5*⍨1+⊢5 

Try it online!

Returns a matrix where every row represents a coordinate.Try it online!

APL (Dyalog), 20 19 bytes

∘.=⍨∘⍳⍪⊢÷⍨1+.5*⍨1+⊢ 

Try it online!

Returns a matrix where every row represents a coordinate.

APL (Dyalog), 20 18 bytes

1 byte thanks to @ngn

∘.=⍨∘⍳⍪1÷¯1+4○*∘.5 

Try it online!

-1 byte
Source Link
ngn
  • 15.6k
  • 2
  • 45
  • 90

APL (Dyalog), 2020 19 bytes

(∘.=⍨⍳)⍪⊢÷⍨1+=⍨∘⍳⍪⊢÷⍨1+.5*⍨1+⊢ 

Try it online!Try it online!

Returns a matrix where every row represents a coordinate.

APL (Dyalog), 20 bytes

(∘.=⍨⍳)⍪⊢÷⍨1+.5*⍨1+⊢ 

Try it online!

Returns a matrix where every row represents a coordinate.

APL (Dyalog), 20 19 bytes

∘.=⍨∘⍳⍪⊢÷⍨1+.5*⍨1+⊢ 

Try it online!

Returns a matrix where every row represents a coordinate.

Source Link
Uriel
  • 13.3k
  • 4
  • 18
  • 45

APL (Dyalog), 20 bytes

(∘.=⍨⍳)⍪⊢÷⍨1+.5*⍨1+⊢ 

Try it online!

Returns a matrix where every row represents a coordinate.