Logs: freenode/#haskell
| 2020-11-14 21:18:02 | × | borne quits (~fritjof@200116b864edc4004fbf5cd6c83663b1.dip.versatel-1u1.de) (Ping timeout: 260 seconds) |
| 2020-11-14 21:18:24 | <merijn> | For example |
| 2020-11-14 21:18:48 | × | conal quits (~conal@64.71.133.70) (Quit: Computer has gone to sleep.) |
| 2020-11-14 21:19:00 | <merijn> | And then make "Chan Message" with 1 thread reading from (and handling) messages and 2 (or more) threads writing messages to that Chan |
| 2020-11-14 21:19:14 | → | conal joins (~conal@64.71.133.70) |
| 2020-11-14 21:19:55 | × | conal quits (~conal@64.71.133.70) (Client Quit) |
| 2020-11-14 21:20:20 | × | vicfred_ quits (~vicfred@unaffiliated/vicfred) (Quit: Leaving) |
| 2020-11-14 21:20:22 | → | conal joins (~conal@64.71.133.70) |
| 2020-11-14 21:20:42 | × | conal quits (~conal@64.71.133.70) (Client Quit) |
| 2020-11-14 21:21:15 | → | Khisanth joins (~Khisanth@166.sub-174-197-147.myvzw.com) |
| 2020-11-14 21:22:03 | → | conal joins (~conal@64.71.133.70) |
| 2020-11-14 21:23:54 | × | dequbed quits (~dequbed@2001:bc8:3f24:100::1) (Quit: Bye o/) |
| 2020-11-14 21:26:15 | → | chaosmasttter joins (~chaosmast@p200300c4a70f620115f0ead7b0e70c62.dip0.t-ipconnect.de) |
| 2020-11-14 21:26:36 | × | hyperisco quits (~hyperisco@d192-186-117-226.static.comm.cgocable.net) (Ping timeout: 272 seconds) |
| 2020-11-14 21:26:44 | <Feuermagier> | how do i turn a list of 'a' into a list of (indexOfaInList, a)? |
| 2020-11-14 21:27:44 | <Rembane> | Feuermagier: zip [0..] listOfA |
| 2020-11-14 21:28:01 | <Feuermagier> | thx |
| 2020-11-14 21:28:13 | <Rembane> | np |
| 2020-11-14 21:30:09 | → | Jeanne-Kamikaze joins (~Jeanne-Ka@66.115.189.199) |
| 2020-11-14 21:31:27 | → | dequbed joins (~dequbed@yanduxian.paranoidlabs.org) |
| 2020-11-14 21:32:51 | → | luke joins (~luke@bitnomial/staff/luke) |
| 2020-11-14 21:33:06 | <Feuermagier> | ok, so now I want to sort by a function applied on a, group all with the same result and return a list of only the indexes we just added from the first of our result group |
| 2020-11-14 21:33:38 | <Rembane> | Feuermagier: How much of that code do you already have ? |
| 2020-11-14 21:33:44 | <Feuermagier> | the sort :D |
| 2020-11-14 21:33:51 | <Rembane> | :D |
| 2020-11-14 21:34:31 | <Feuermagier> | thinking clear enough to write that sentence was already something :D |
| 2020-11-14 21:35:07 | × | Zetagon quits (~leo@c151-177-52-233.bredband.comhem.se) (Remote host closed the connection) |
| 2020-11-14 21:35:19 | <Feuermagier> | actually, I think I can get the group as well |
| 2020-11-14 21:35:50 | <Feuermagier> | and with a bit of luck the return... maybe |
| 2020-11-14 21:35:53 | × | geekosaur quits (82659a09@host154-009.vpn.uakron.edu) (Remote host closed the connection) |
| 2020-11-14 21:36:02 | <Feuermagier> | i think writing that sentence was indeed the hardest part |
| 2020-11-14 21:36:19 | <hpc> | Feuermagier: https://en.wikipedia.org/wiki/Rubber_duck_debugging ; |
| 2020-11-14 21:36:21 | <hpc> | ;) |
| 2020-11-14 21:37:26 | × | conal quits (~conal@64.71.133.70) (Quit: Computer has gone to sleep.) |
| 2020-11-14 21:39:03 | wroathe_ | is now known as wroathe |
| 2020-11-14 21:40:05 | → | jakob_ joins (~textual@p200300f49f162200811420ff75ca5354.dip0.t-ipconnect.de) |
| 2020-11-14 21:40:51 | × | francesco_ quits (~francesco@host-82-56-223-169.retail.telecomitalia.it) (Quit: Leaving) |
| 2020-11-14 21:41:21 | × | elfets quits (~elfets@ip-37-201-23-96.hsi13.unitymediagroup.de) (Ping timeout: 256 seconds) |
| 2020-11-14 21:41:35 | → | jneira joins (02896ac0@gateway/web/cgi-irc/kiwiirc.com/ip.2.137.106.192) |
| 2020-11-14 21:42:15 | <Feuermagier> | when exactly can I leave the variable passed to my function unnamed (I've seen variables passed never mentioned occasionally and just left implicitly at the end it seems) |
| 2020-11-14 21:42:25 | × | coot quits (~coot@37.30.49.253.nat.umts.dynamic.t-mobile.pl) (Quit: coot) |
| 2020-11-14 21:42:27 | × | luke quits (~luke@bitnomial/staff/luke) (Quit: sleep) |
| 2020-11-14 21:43:46 | <Rembane> | Pointfree style is good to look into |
| 2020-11-14 21:44:01 | <Rembane> | https://wiki.haskell.org/Pointfree |
| 2020-11-14 21:44:27 | <c_wraith> | You always *can*. It's just strongly recommended that you not do so. |
| 2020-11-14 21:45:34 | <Rembane> | I'm a strong proponent of pointfree style, but I hate readable code. |
| 2020-11-14 21:45:40 | <c_wraith> | Well. You always can if there's some sort of destructor available for any data types you might need to pull apart.. |
| 2020-11-14 21:46:00 | → | conal joins (~conal@64.71.133.70) |
| 2020-11-14 21:46:06 | × | royal_screwup21 quits (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) (Quit: Connection closed) |
| 2020-11-14 21:46:32 | → | royal_screwup21 joins (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) |
| 2020-11-14 21:47:14 | → | FreeBirdLjj joins (~freebirdl@101.228.42.108) |
| 2020-11-14 21:49:39 | × | Maxdamantus quits (~Maxdamant@unaffiliated/maxdamantus) (Quit: brb hopefully) |
| 2020-11-14 21:50:11 | → | Amras joins (~Amras@unaffiliated/amras0000) |
| 2020-11-14 21:51:49 | × | FreeBirdLjj quits (~freebirdl@101.228.42.108) (Ping timeout: 264 seconds) |
| 2020-11-14 21:52:31 | → | Tops2 joins (~Tobias@dyndsl-095-033-095-151.ewe-ip-backbone.de) |
| 2020-11-14 21:52:36 | × | howdoi quits (uid224@gateway/web/irccloud.com/x-ehddxpzdszkkwuzg) (Quit: Connection closed for inactivity) |
| 2020-11-14 21:53:27 | × | royal_screwup21 quits (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) (Quit: Connection closed) |
| 2020-11-14 21:53:53 | → | royal_screwup21 joins (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) |
| 2020-11-14 21:55:32 | → | StephenS1 joins (~StephenS@185.204.1.185) |
| 2020-11-14 21:57:27 | × | merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 260 seconds) |
| 2020-11-14 21:57:47 | × | incognito9999 quits (~incognito@hwsrv-648981.hostwindsdns.com) (Quit: ZNC 1.7.2+deb3~bpo9+1 - https://znc.in) |
| 2020-11-14 21:59:02 | <Feuermagier> | ok, so the sortby turns out to be harder than expected. I want to sort a [(Int, [Int])] by the length of the ĺist in the tuples. |
| 2020-11-14 21:59:23 | → | Tops21 joins (~Tobias@dyndsl-095-033-095-151.ewe-ip-backbone.de) |
| 2020-11-14 22:00:24 | → | incognito9999 joins (~incognito@hwsrv-648981.hostwindsdns.com) |
| 2020-11-14 22:01:19 | <Rembane> | Feuermagier: You do not have a list in the tuple |
| 2020-11-14 22:01:22 | → | Tops22 joins (~Tobias@dyndsl-095-033-095-151.ewe-ip-backbone.de) |
| 2020-11-14 22:01:57 | <Feuermagier> | Rembane, its a list of tuples. the tuples is of type (Int,[Int]) |
| 2020-11-14 22:02:29 | <Feuermagier> | the 2nd position of the tuple is a Int list |
| 2020-11-14 22:02:53 | × | Tops2 quits (~Tobias@dyndsl-095-033-095-151.ewe-ip-backbone.de) (Ping timeout: 256 seconds) |
| 2020-11-14 22:04:26 | × | darjeeling_ quits (~darjeelin@122.245.208.31) (Ping timeout: 246 seconds) |
| 2020-11-14 22:04:28 | × | shah^ quits (shah@ip98-184-89-2.mc.at.cox.net) () |
| 2020-11-14 22:04:32 | <Rembane> | Feuermagier: Sorry, I failed at reading. |
| 2020-11-14 22:04:32 | × | Tops21 quits (~Tobias@dyndsl-095-033-095-151.ewe-ip-backbone.de) (Ping timeout: 260 seconds) |
| 2020-11-14 22:04:36 | → | fuzzypixelz joins (~fuzzypixe@236.53.85.79.rev.sfr.net) |
| 2020-11-14 22:04:43 | × | hekkaidekapus quits (~tchouri@gateway/tor-sasl/hekkaidekapus) (Ping timeout: 240 seconds) |
| 2020-11-14 22:04:48 | <fuzzypixelz> | anyone here uses emacs? |
| 2020-11-14 22:04:52 | <Rembane> | Feuermagier: sortBy (comparing snd) should do what you want |
| 2020-11-14 22:04:58 | <Feuermagier> | Rembane, np, you're helping me here :) |
| 2020-11-14 22:05:10 | <Rembane> | Feuermagier: ^^ |
| 2020-11-14 22:05:21 | <Feuermagier> | Rembane, if I just compare snd, does it autotake length? |
| 2020-11-14 22:05:25 | <fuzzypixelz> | if so, can you please explain to me how to automagically infer the type of a haskell function? |
| 2020-11-14 22:05:26 | → | tsrt^ joins (tsrt@ip98-184-89-2.mc.at.cox.net) |
| 2020-11-14 22:07:00 | <Rembane> | Feuermagier: No, it seems like I'm a bit tired, lets try that again: sortBy (comparing (length . snd)) |
| 2020-11-14 22:07:04 | → | hekkaidekapus joins (~tchouri@gateway/tor-sasl/hekkaidekapus) |
| 2020-11-14 22:07:54 | <Feuermagier> | thx again! |
| 2020-11-14 22:08:29 | <Rembane> | np |
| 2020-11-14 22:09:22 | → | jakalx joins (~jakalx@base.jakalx.net) |
| 2020-11-14 22:12:09 | × | incognito9999 quits (~incognito@hwsrv-648981.hostwindsdns.com) (Quit: ZNC 1.7.2+deb3~bpo9+1 - https://znc.in) |
| 2020-11-14 22:12:24 | <Feuermagier> | Rembane, linter recommends "sortOn (length . snd) px" |
| 2020-11-14 22:13:42 | <monochrom> | sortOn is defined in terms of that combination of sortBy and comparing. So it depends on which one you prefer to memorize. |
| 2020-11-14 22:13:59 | × | jakalx quits (~jakalx@base.jakalx.net) (Ping timeout: 272 seconds) |
| 2020-11-14 22:14:42 | <Rembane> | Feuermagier: Use that instead, their semantics are equivalent. :) |
| 2020-11-14 22:14:56 | <Feuermagier> | excellent |
| 2020-11-14 22:15:00 | hackage | hascard 0.5.0.0 - A TUI for reviewing notes using 'flashcards' written with markdown-like syntax. https://hackage.haskell.org/package/hascard-0.5.0.0 (Yvee1) |
| 2020-11-14 22:16:20 | × | texasmynsted quits (~texasmyns@212.102.44.36) (Remote host closed the connection) |
| 2020-11-14 22:16:48 | → | matias_ joins (~matias@201-42-174-21.dsl.telesp.net.br) |
| 2020-11-14 22:17:57 | × | matias_ quits (~matias@201-42-174-21.dsl.telesp.net.br) (Client Quit) |
| 2020-11-14 22:19:48 | → | darjeeling_ joins (~darjeelin@122.245.208.31) |
| 2020-11-14 22:20:03 | → | fendor_ joins (~fendor@91.141.0.18.wireless.dyn.drei.com) |
| 2020-11-14 22:20:12 | × | danvet quits (~Daniel@2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa) (Ping timeout: 260 seconds) |
All times are in UTC.