Home liberachat/#haskell: Logs Calendar

Logs: liberachat/#haskell

←Prev  Next→
Page 1 .. 484 485 486 487 488 489 490 491 492 493 494 .. 18003
1,800,295 events total
2021-06-16 00:20:22 ChaiTRex joins (~ChaiTRex@user/chaitrex)
2021-06-16 00:21:54 × timthelion quits (~timothy@185.91.169.13) (Ping timeout: 240 seconds)
2021-06-16 00:30:18 × shapr quits (~user@pool-108-28-144-11.washdc.fios.verizon.net) (Ping timeout: 240 seconds)
2021-06-16 00:30:28 mnrmnaugh is now known as awk
2021-06-16 00:30:54 awk is now known as mnrmnaugh
2021-06-16 00:32:26 vicfred joins (~vicfred@user/vicfred)
2021-06-16 00:32:54 × beka quits (~beka@104.193.170-244.PUBLIC.monkeybrains.net) (Ping timeout: 268 seconds)
2021-06-16 00:35:32 delYsid parts (~user@84-115-55-45.cable.dynamic.surfer.at) (ERC (IRC client for Emacs 27.1.50))
2021-06-16 00:35:57 × GIANTWORLDKEEPER quits (~pjetcetal@2.95.204.25) (Ping timeout: 244 seconds)
2021-06-16 00:37:22 pierrot_ is now known as pierrot
2021-06-16 00:40:31 × Ranhir quits (~Ranhir@157.97.53.139) (Quit: Changing server...)
2021-06-16 00:46:37 × Ram-Z quits (Ram-Z@2a01:7e01::f03c:91ff:fe57:d2df) (Ping timeout: 272 seconds)
2021-06-16 00:47:49 mengu joins (~mengu@c188-150-13-129.bredband.tele2.se)
2021-06-16 00:50:55 hexfive joins (~eric@50.35.83.177)
2021-06-16 00:51:18 ddellacosta joins (~ddellacos@86.106.121.100)
2021-06-16 00:51:18 × hexfive quits (~eric@50.35.83.177) (Client Quit)
2021-06-16 00:51:31 GIANTWORLDKEEPER joins (~pjetcetal@2.95.204.25)
2021-06-16 00:51:54 × mengu quits (~mengu@c188-150-13-129.bredband.tele2.se) (Ping timeout: 240 seconds)
2021-06-16 00:53:09 <spider_> is there an inbuilt split function? eg split "," "hi, how are you? that's, awesome"
2021-06-16 00:53:15 <spider_> would return 3 elements
2021-06-16 00:53:59 × econo quits (uid147250@user/econo) (Quit: Connection closed for inactivity)
2021-06-16 00:54:42 <ski> > splitOn "," "hi, how are you? that's, awesome"
2021-06-16 00:54:44 <lambdabot> ["hi"," how are you? that's"," awesome"]
2021-06-16 00:55:23 <ski> @hackage split
2021-06-16 00:55:24 <lambdabot> https://hackage.haskell.org/package/split
2021-06-16 00:55:54 × ddellacosta quits (~ddellacos@86.106.121.100) (Ping timeout: 240 seconds)
2021-06-16 00:55:59 × hegstal quits (~hegstal@2a02:c7f:7604:8a00:d648:1b69:add9:923) (Remote host closed the connection)
2021-06-16 00:56:08 econo joins (uid147250@user/econo)
2021-06-16 00:56:36 × dcompoze quits (~dcompoze@5E98D6D9.static.tld.pl) (Quit: WeeChat 3.2)
2021-06-16 00:57:12 <spider_> thank you!
2021-06-16 00:58:45 <spider_> I can't seem to import it
2021-06-16 00:59:12 <spider_> oh I have to install it
2021-06-16 01:01:06 yd502 joins (~yd502@180.168.212.6)
2021-06-16 01:03:19 edr joins (~edr@user/edr)
2021-06-16 01:08:09 pe200012_ joins (~pe200012@218.107.17.237)
2021-06-16 01:08:33 × ordinate quits (~ordinate@c-68-38-144-3.hsd1.in.comcast.net) (Quit: Leaving)
2021-06-16 01:14:33 DDR joins (~DDR@2604:3d08:4c7e:8600:899d:7922:1b3d:4bf)
2021-06-16 01:16:28 lavaman joins (~lavaman@98.38.249.169)
2021-06-16 01:17:02 <pavonia> Is there a similar function that allows you to split based on different sublists?
2021-06-16 01:17:39 <pavonia> e.g. split' ["__", ","] "foo__bar,baz" == ["foo", "bar", "baz"]
2021-06-16 01:18:15 <Axman6> > splitOn "__" "foo__bar,baz" >>= splitOn ","
2021-06-16 01:18:16 <lambdabot> ["foo","bar","baz"]
2021-06-16 01:19:20 <Axman6> not that I know of, but making that into a function wouldn't be hard
2021-06-16 01:20:08 × wroathe quits (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) (Ping timeout: 272 seconds)
2021-06-16 01:20:14 × lavaman quits (~lavaman@98.38.249.169) (Remote host closed the connection)
2021-06-16 01:20:22 <pavonia> Hhm
2021-06-16 01:20:37 Ram-Z joins (Ram-Z@2a01:7e01::f03c:91ff:fe57:d2df)
2021-06-16 01:20:38 <Axman6> % let splitAll [] str = [str]; splitAll (x:xs) str = splitOn x str >>= splitAll xs in splitAll ["__", ","] "foo__bar,baz"
2021-06-16 01:20:38 <yahb> Axman6: ["foo","bar","baz"]
2021-06-16 01:21:29 <pavonia> % let splitAll [] str = [str]; splitAll (x:xs) str = splitOn x str >>= splitAll xs in splitAll ["foo","bar","baz"] "foo__bar,baz"
2021-06-16 01:21:29 <yahb> pavonia: ["","__",",",""]
2021-06-16 01:21:43 <pavonia> Nice
2021-06-16 01:22:20 <pavonia> % split "" "foobar"
2021-06-16 01:22:21 <yahb> pavonia: ; <interactive>:7:7: error:; * Couldn't match type: [Char]; with: Splitter Char; Expected: Splitter Char; Actual: String; * In the first argument of `split', namely `""'; In the expression: split "" "foobar"; In an equation for `it': it = split "" "foobar"
2021-06-16 01:22:35 <pavonia> % splitOn "" "foobar"
2021-06-16 01:22:35 <yahb> pavonia: ["","f","o","o","b","a","r"]
2021-06-16 01:23:04 <pavonia> Why doesn't it match at the final position too?
2021-06-16 01:24:08 × DDR quits (~DDR@2604:3d08:4c7e:8600:899d:7922:1b3d:4bf) (Quit: DDR is not Dance Dance Revolution)
2021-06-16 01:30:55 mpt joins (~tom@2a02:908:1862:49e0::3)
2021-06-16 01:36:25 wroathe joins (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net)
2021-06-16 01:37:07 × pbrisbin quits (~patrick@pool-72-92-38-164.phlapa.fios.verizon.net) (Ping timeout: 244 seconds)
2021-06-16 01:37:39 × yd502 quits (~yd502@180.168.212.6) (Ping timeout: 268 seconds)
2021-06-16 01:41:43 × wroathe quits (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) (Ping timeout: 272 seconds)
2021-06-16 01:41:43 × mpt quits (~tom@2a02:908:1862:49e0::3) (Ping timeout: 272 seconds)
2021-06-16 01:41:45 mengu joins (~mengu@c188-150-13-129.bredband.tele2.se)
2021-06-16 01:42:28 × egoist quits (~egoist@186.235.82.46) (Quit: WeeChat 3.1)
2021-06-16 01:44:22 yd502 joins (~yd502@180.168.212.6)
2021-06-16 01:46:47 × mengu quits (~mengu@c188-150-13-129.bredband.tele2.se) (Ping timeout: 272 seconds)
2021-06-16 01:47:34 haltux joins (~haltux@a89-154-181-47.cpe.netcabo.pt)
2021-06-16 01:48:10 vicentius joins (~vicentius@user/vicentius)
2021-06-16 01:53:06 × waleee quits (~waleee@2001:9b0:216:8200:d457:9189:7843:1dbd) (Ping timeout: 240 seconds)
2021-06-16 01:53:26 × werneta quits (~werneta@70-142-214-115.lightspeed.irvnca.sbcglobal.net) (Remote host closed the connection)
2021-06-16 01:56:23 wroathe joins (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net)
2021-06-16 02:00:34 ikex1 joins (~ash@user/ikex)
2021-06-16 02:01:06 × xff0x quits (~xff0x@2001:1a81:523f:a800:5daf:c393:a649:41b5) (Ping timeout: 240 seconds)
2021-06-16 02:01:59 ddellacosta joins (~ddellacos@86.106.121.100)
2021-06-16 02:02:05 nova is now known as novasenco
2021-06-16 02:03:13 xff0x joins (~xff0x@2001:1a81:527a:b400:9fd4:5509:ffc:858e)
2021-06-16 02:03:30 × pe200012_ quits (~pe200012@218.107.17.237) (Ping timeout: 240 seconds)
2021-06-16 02:03:53 pe200012_ joins (~pe200012@183.63.73.44)
2021-06-16 02:06:38 × ddellacosta quits (~ddellacos@86.106.121.100) (Ping timeout: 268 seconds)
2021-06-16 02:11:38 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-06-16 02:12:44 <dmwit> pavonia: From the docs: "Note that splitting on the empty list is a special case."
2021-06-16 02:13:01 <dmwit> https://hackage.haskell.org/package/split-0.2.3.4/docs/Data-List-Split.html#v:onSublist
2021-06-16 02:13:08 <dmwit> (splitOn uses onSublist)
2021-06-16 02:13:26 <dmwit> :t foldM
2021-06-16 02:13:27 <lambdabot> (Foldable t, Monad m) => (b -> a -> m b) -> b -> t a -> m b
2021-06-16 02:14:11 <dmwit> % foldM (flip splitOn) "foo__bar,baz" ["foo", "bar", "baz"]
2021-06-16 02:14:12 <yahb> dmwit: ["","__",",",""]
2021-06-16 02:14:33 <dmwit> Don't write your own recursion! ;-)
2021-06-16 02:16:30 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 268 seconds)
2021-06-16 02:18:04 × juhp quits (~juhp@128.106.188.66) (Quit: juhp)
2021-06-16 02:18:18 juhp joins (~juhp@128.106.188.66)
2021-06-16 02:23:54 × vicentius quits (~vicentius@user/vicentius) (Ping timeout: 240 seconds)
2021-06-16 02:28:25 × sheepduck quits (~sheepduck@cpe98524a8cef7c-cm98524a8cef7a.cpe.net.cable.rogers.com) (Remote host closed the connection)
2021-06-16 02:29:06 × machinedgod quits (~machinedg@135-23-192-217.cpe.pppoe.ca) (Ping timeout: 244 seconds)
2021-06-16 02:29:29 fizbin joins (~fizbin@2601:8a:4080:1280:8c7e:5b3f:79d6:ec26)
2021-06-16 02:29:34 sheepduck joins (~sheepduck@cpe98524a8cef7c-cm98524a8cef7a.cpe.net.cable.rogers.com)
2021-06-16 02:29:53 finn_elija joins (~finn_elij@user/finn-elija/x-0085643)
2021-06-16 02:29:53 FinnElija is now known as Guest7201

All times are in UTC.