Skip to main content
Commonmark migration
Source Link

##F#, 108 106 bytes##

F#, 108 106 bytes

let v p=seq{for i=1 to p do
 if i%3=1 then yield"Yeah"
 if i%2=1 then yield"But"
 if i%3=2 then yield"No"}

Try it online!

-2 bytes changing from i=0 to p-1 to i=1 to p and adjusting modulos. Apart from that, pretty straight-forward.

##F#, 108 106 bytes##

let v p=seq{for i=1 to p do
 if i%3=1 then yield"Yeah"
 if i%2=1 then yield"But"
 if i%3=2 then yield"No"}

Try it online!

-2 bytes changing from i=0 to p-1 to i=1 to p and adjusting modulos. Apart from that, pretty straight-forward.

F#, 108 106 bytes

let v p=seq{for i=1 to p do
 if i%3=1 then yield"Yeah"
 if i%2=1 then yield"But"
 if i%3=2 then yield"No"}

Try it online!

-2 bytes changing from i=0 to p-1 to i=1 to p and adjusting modulos. Apart from that, pretty straight-forward.

-2 bytes for: i=1 to p
Source Link

##F#, 108108 106 bytes##

let v p=seq{for i=0i=1 to p-1 do
 if i%3=0i%3=1 then yield"Yeah"
 if i%2=0i%2=1 then yield"But"
 if i%3=1i%3=2 then yield"No"}

Try it online!Try it online!

Pretty-2 bytes changing from i=0 to p-1 to i=1 to p and adjusting modulos. Apart from that, pretty straight-forward.

##F#, 108 bytes##

let v p=seq{for i=0 to p-1 do
 if i%3=0 then yield"Yeah"
 if i%2=0 then yield"But"
 if i%3=1 then yield"No"}

Try it online!

Pretty straight-forward.

##F#, 108 106 bytes##

let v p=seq{for i=1 to p do
 if i%3=1 then yield"Yeah"
 if i%2=1 then yield"But"
 if i%3=2 then yield"No"}

Try it online!

-2 bytes changing from i=0 to p-1 to i=1 to p and adjusting modulos. Apart from that, pretty straight-forward.

Added corrected TIO link.
Source Link

##F#, 108 bytes##

let v p=seq{for i=0 to p-1 do
 if i%3=0 then yield"Yeah"
 if i%2=0 then yield"But"
 if i%3=1 then yield"No"}

Try it online!Try it online!

Pretty straight-forward.

##F#, 108 bytes##

let v p=seq{for i=0 to p-1 do
 if i%3=0 then yield"Yeah"
 if i%2=0 then yield"But"
 if i%3=1 then yield"No"}

Try it online!

Pretty straight-forward.

##F#, 108 bytes##

let v p=seq{for i=0 to p-1 do
 if i%3=0 then yield"Yeah"
 if i%2=0 then yield"But"
 if i%3=1 then yield"No"}

Try it online!

Pretty straight-forward.

Source Link
Loading