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 15 characters in body
Source Link
nimi
  • 36k
  • 4
  • 35
  • 100

Haskell, 34(削除) 34 (削除ここまで) 33 bytes

(==[4f l=[sum[1|' '<-c]|c<-l]==[4,6,4]).map(\c->sum[1|' '<-c])

Takes a list of stringsTry it online!.Try it online!

Edit: thanks to @xnor for a byte!

Haskell, 34 bytes

(==[4,6,4]).map(\c->sum[1|' '<-c])

Takes a list of strings.Try it online!

Haskell, (削除) 34 (削除ここまで) 33 bytes

f l=[sum[1|' '<-c]|c<-l]==[4,6,4]

Try it online!.

Edit: thanks to @xnor for a byte!

Post Undeleted by nimi
added 15 characters in body
Source Link
nimi
  • 36k
  • 4
  • 35
  • 100

Haskell, 2934 bytes

(==[5==[4,76,5]4]).map(length.words\c->sum[1|' '<-c])

Takes a list of Stringsstrings. Try it online! Try it online!

Haskell, 29 bytes

(==[5,7,5]).map(length.words)

Takes a list of Strings. Try it online!

Haskell, 34 bytes

(==[4,6,4]).map(\c->sum[1|' '<-c])

Takes a list of strings. Try it online!

Post Deleted by nimi
Source Link
nimi
  • 36k
  • 4
  • 35
  • 100

Haskell, 29 bytes

(==[5,7,5]).map(length.words)

Takes a list of Strings. Try it online!

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