Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

added 44 characters in body
Source Link
naffetS
  • 13.1k
  • 2
  • 22
  • 54

Ruby, 6057 bytes

f=->t,a{a!=t&&t!=0&&t=t&&t&&t.zip(a).map{|r|[f][t.size^a.size][*r]}}

Try it online! Try it online!

Uses nil as filler. (false will also work)

Ports @pxeger's Python answer.

Ruby, 60 bytes

f=->t,a{a!=t&&t!=0&&t.zip(a).map{|r|[f][t.size^a.size][*r]}}

Try it online!

Ports @pxeger's Python answer.

Ruby, 57 bytes

f=->t,a{a!=t&&t&&t.zip(a).map{|r|[f][t.size^a.size][*r]}}

Try it online!

Uses nil as filler. (false will also work)

Ports @pxeger's Python answer.

Source Link
naffetS
  • 13.1k
  • 2
  • 22
  • 54

Ruby, 60 bytes

f=->t,a{a!=t&&t!=0&&t.zip(a).map{|r|[f][t.size^a.size][*r]}}

Try it online!

Ports @pxeger's Python answer.

AltStyle によって変換されたページ (->オリジナル) /