Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Haskell Newspeak

Name: Anonymous 2022-11-22 21:34

zip is a transpose
unzip is also the transpose
transpose is a transpose obvious

why Haskell people invented 3 words for the same basic list operations?

It is like you have 3 operators `add`, `plus` and `sum`, all doing the addition of two numbers.

Name: Leah Culver 2022-11-23 0:34

I'm a superstar and I won't be there to look for you.

Name: Leah Culver 2022-11-23 1:21

sorry Nikita babe I have another man in my life

Name: Leah Culver 2022-11-23 1:24

It is false, Nikita, it just doesn't make sense!

Name: Anonymous 2022-11-23 6:56

???
zip and unzip are opposite
transpose is a generic zip
``Why does bython (or any other shithole scripting lang) have both `map' and `sum'?'' would be an equivalently obtuse question.
HIBT?

Name: Anonymous 2022-11-23 6:56

They are subtly different. Compare:

Takes list of lists, returns list of lists:
https://hackage.haskell.org/package/base-4.17.0.0/docs/Data-List.html#v:transpose


Takes two lists, returns list of tuples:
http://zvon.org/other/haskell/Outputprelude/zip_f.html

Another difference is how they handle element count mismatch. In zip, if one list is bigger than the other, it doesn't create 1-uples.

Name: Anonymous 2022-11-23 18:43

>>6
Tuple not being a list

Name: Anonymous 2022-11-23 20:46

Who are you quoting, >>6?

Name: Anonymous 2022-11-24 0:54

You lot have your testicles wrapped too tight. Only Leah Culver will make it into Heaven.

Don't change these.
Name: Email:
Entire Thread Thread List