Newest at the top
2025-02-09 06:07:41 +0100 | jle` | (~jle`@syn-023-240-067-073.res.spectrum.com) (Quit: WeeChat 4.5.1) |
2025-02-09 06:06:27 +0100 | <tri> | hmm ok |
2025-02-09 06:01:09 +0100 | <monochrom> | Now to probe the boundary of your understanding, "g xs ys = sum (zipWith f xs ys)" can still be simplified with (.), but only as: g xs = sum . zipWith f xs |
2025-02-09 06:01:02 +0100 | alfiee | (~alfiee@user/alfiee) (Ping timeout: 252 seconds) |
2025-02-09 05:57:46 +0100 | <tri> | so that's why zip was failing because it is a 2-input function |
2025-02-09 05:57:26 +0100 | <tri> | oh the (.) is actually a function, which takes two 1-input functions |
2025-02-09 05:56:34 +0100 | alfiee | (~alfiee@user/alfiee) alfiee |
2025-02-09 05:55:19 +0100 | aforemny | (~aforemny@2001:9e8:6cc0:9f00:f26a:4821:630d:3b0c) (Ping timeout: 260 seconds) |
2025-02-09 05:54:10 +0100 | aforemny_ | (~aforemny@2001:9e8:6cdf:f800:9bf4:7ea7:4c6a:c80f) aforemny |
2025-02-09 05:51:33 +0100 | encyde | (~ensyde@2601:5c6:c200:6dc0::16fe) |
2025-02-09 05:47:30 +0100 | <tri> | btw I've just come back to Haskell after a long break, and still seeing you here helping people out. Thank you |
2025-02-09 05:47:13 +0100 | yegorc | (~yegorc@user/yegorc) (Quit: Leaving) |
2025-02-09 05:45:48 +0100 | <tri> | yea that works, I'm just trying to make it work using function composition. I forgot what concept force me to use 1 input function to compose, I have to look it up |
2025-02-09 05:44:02 +0100 | <monochrom> | Do you accept: getTotalDistance xs ys = sum (zipWith (\(left, right) -> abs $ left -right) xs ys) |
2025-02-09 05:43:45 +0100 | <tri> | seems like I can only compose 1 input function... |
2025-02-09 05:39:51 +0100 | dtman34 | (~dtman34@c-75-72-179-251.hsd1.mn.comcast.net) dtman34 |
2025-02-09 05:36:48 +0100 | <tri> | it has something to do with 2 parameters passing into zip, but I can't really explain |
2025-02-09 05:35:55 +0100 | <tri> | https://paste.tomsmeding.com/jV6JdsBd |
2025-02-09 05:35:53 +0100 | <tri> | hi, why is this not working please? |
2025-02-09 05:34:54 +0100 | tri | (~tri@2601:182:780:720::55a0) |
2025-02-09 05:32:59 +0100 | jle` | (~jle`@syn-023-240-067-073.res.spectrum.com) jle` |
2025-02-09 05:22:21 +0100 | aaronv | (~aaronv@user/aaronv) aaronv |
2025-02-09 05:17:57 +0100 | aaronv | (~aaronv@user/aaronv) (Ping timeout: 248 seconds) |
2025-02-09 05:13:54 +0100 | alfiee | (~alfiee@user/alfiee) (Ping timeout: 272 seconds) |
2025-02-09 05:08:50 +0100 | alfiee | (~alfiee@user/alfiee) alfiee |
2025-02-09 05:08:19 +0100 | bitdex | (~bitdex@gateway/tor-sasl/bitdex) bitdex |
2025-02-09 05:04:31 +0100 | TheCoffeMaker | (~TheCoffeM@user/thecoffemaker) (Ping timeout: 244 seconds) |
2025-02-09 05:03:48 +0100 | bitdex | (~bitdex@gateway/tor-sasl/bitdex) (Ping timeout: 264 seconds) |
2025-02-09 05:02:18 +0100 | Unicorn_Princess | (~Unicorn_P@user/Unicorn-Princess/x-3540542) (Remote host closed the connection) |
2025-02-09 04:59:25 +0100 | jle` | (~jle`@2603:8001:3b02:84d4:6618:6c83:b259:edfc) (Ping timeout: 252 seconds) |
2025-02-09 04:47:14 +0100 | peterbecich | (~Thunderbi@syn-047-229-123-186.res.spectrum.com) peterbecich |
2025-02-09 04:24:36 +0100 | alfiee | (~alfiee@user/alfiee) (Ping timeout: 252 seconds) |
2025-02-09 04:23:03 +0100 | Jeanne-Kamikaze | (~Jeanne-Ka@79.127.217.43) (Quit: Leaving) |
2025-02-09 04:20:26 +0100 | alfiee | (~alfiee@user/alfiee) alfiee |
2025-02-09 04:05:35 +0100 | op_4 | (~tslil@user/op-4/x-9116473) op_4 |
2025-02-09 04:05:04 +0100 | op_4 | (~tslil@user/op-4/x-9116473) (Remote host closed the connection) |
2025-02-09 03:53:33 +0100 | tavare | (~tavare@user/tavare) tavare |
2025-02-09 03:53:33 +0100 | tavare | (~tavare@150.129.88.189) (Changing host) |
2025-02-09 03:53:33 +0100 | tavare | (~tavare@150.129.88.189) |
2025-02-09 03:36:50 +0100 | alfiee | (~alfiee@user/alfiee) (Ping timeout: 268 seconds) |
2025-02-09 03:32:10 +0100 | gmg | (~user@user/gehmehgeh) gehmehgeh |
2025-02-09 03:32:02 +0100 | alfiee | (~alfiee@user/alfiee) alfiee |
2025-02-09 03:32:00 +0100 | gmg | (~user@user/gehmehgeh) (Ping timeout: 264 seconds) |
2025-02-09 03:29:14 +0100 | peterbecich | (~Thunderbi@syn-047-229-123-186.res.spectrum.com) (Ping timeout: 252 seconds) |
2025-02-09 03:28:07 +0100 | vanishingideal | (~vanishing@user/vanishingideal) vanishingideal |
2025-02-09 03:23:35 +0100 | aaronv | (~aaronv@user/aaronv) aaronv |
2025-02-09 03:18:59 +0100 | Jeanne-Kamikaze | (~Jeanne-Ka@79.127.217.43) Jeanne-Kamikaze |
2025-02-09 03:14:18 +0100 | aaronv | (~aaronv@user/aaronv) (Ping timeout: 252 seconds) |
2025-02-09 02:48:07 +0100 | alfiee | (~alfiee@user/alfiee) (Ping timeout: 268 seconds) |
2025-02-09 02:43:59 +0100 | Tuplanolla | (~Tuplanoll@91-159-69-59.elisa-laajakaista.fi) (Quit: Leaving.) |