Info

Login

Channels

APIs

Credits

  • cheeser
  • ernimril
  • joed
  • kinabalu
  • lunk
  • ojacobson
  • r0bby
  • ThaDon
  • ricky_clarkson
  • topriddy

« 2020-10-16

2020-10-17

2020-10-18 »

Nick Message Date
fluxxion [fluxxion!~fluxxion@c-73-15-5-244.hsd1.ca.comcast.net] has joined #kotlin [12:16]
raoul11 [raoul11!~raoul11@unaffiliated/raoul11] has joined #kotlin [01:45]
raoul11 [raoul11!~raoul11@unaffiliated/raoul11] has joined #kotlin [02:01]
scpketer [scpketer!~scpketer@unaffiliated/scpketer] has joined #kotlin [02:40]
white_shadow [white_shadow!~white_sha@unaffiliated/whiteshadow/x-9072] has joined #kotlin [02:47]
raoul11 [raoul11!~raoul11@unaffiliated/raoul11] has joined #kotlin [02:54]
raoul11 [raoul11!~raoul11@unaffiliated/raoul11] has joined #kotlin [02:57]
Lengsdorfer [Lengsdorfer!~Lengsdorf@unaffiliated/lengsdorfer] has joined #kotlin [02:58]
white_shadow [white_shadow!~white_sha@unaffiliated/whiteshadow/x-9072] has joined #kotlin [03:46]
raoul11 [raoul11!~raoul11@unaffiliated/raoul11] has joined #kotlin [03:52]
raoul11 [raoul11!~raoul11@unaffiliated/raoul11] has joined #kotlin [04:44]
funeral [funeral!~Funeral@2a01:799:7e0:1000::c89] has joined #kotlin [04:48]
white_shadow [white_shadow!~white_sha@unaffiliated/whiteshadow/x-9072] has joined #kotlin [05:01]
white_shadow [white_shadow!~white_sha@unaffiliated/whiteshadow/x-9072] has joined #kotlin [05:25]
_lucifer [_lucifer!sid308373@musicbrainz/user/amCap1712] has joined #kotlin [06:20]
_lucifer parted the channel: [06:20]
raoul11 [raoul11!~raoul11@unaffiliated/raoul11] has joined #kotlin [06:38]
white_shadow [white_shadow!~white_sha@unaffiliated/whiteshadow/x-9072] has joined #kotlin [07:51]
enrio [enrio!~nanoz@unaffiliated/nanoz] has joined #kotlin [08:48]
scpketer [scpketer!~scpketer@unaffiliated/scpketer] has joined #kotlin [08:55]
raoul11 [raoul11!~raoul11@unaffiliated/raoul11] has joined #kotlin [09:51]
scpketer [scpketer!~scpketer@unaffiliated/scpketer] has joined #kotlin [10:27]
Renari [Renari!~Renari@70.44.83.129.res-cmts.bgr.ptd.net] has joined #kotlin [11:25]
callq [callq!~callq@2603:3001:a00:400:84f1:5bbb:62d7:4e9a] has joined #kotlin [11:27]
scpketer [scpketer!~scpketer@unaffiliated/scpketer] has joined #kotlin [12:16]
zutat [zutat!5d8760f8@unaffiliated/zutat] has joined #kotlin [12:28]
zutat30 [zutat30!5d8760f8@unaffiliated/zutat] has joined #kotlin [01:14]
orbyt_ [orbyt_!~orbyt@172.92.4.78] has joined #kotlin [01:44]
zutat [zutat!5d8760f8@unaffiliated/zutat] has joined #kotlin [02:47]
enrio [enrio!~nanoz@unaffiliated/nanoz] has joined #kotlin [02:51]
servus [servus!~servus@host-80-238-108-182.jmdi.pl] has joined #kotlin [03:13]
RedNifre Is there something like whileNotNull(someMethod()) { notNullResult -> ... } ? [03:28]
RedNifre I autotranslated some Java code and it turned into var s: String?; while(someMethod().also { s = it } != null ) { /* Code that uses s */ } [03:29]
cheeser takeWhile()? [03:31]
RedNifre Isn't that a method on iterables? [03:33]
cheeser oh. i was assuming that was what you meant. but yes. :) [03:34]
RedNifre Well, what I'm actually doing is reading from stdInput with readline(), appending an " [03:37]
RedNifre "\n" to every line and joining them all. [03:38]
RedNifre Basically, I'm goldplating my practice code here. [03:38]
RedNifre I started with this auto converted var ...also... stuff and now have my custom whileNotNull(stdInput.readline()) { line -> buffer.append(line); buffer.append('\n') } [03:39]
fluxxion [fluxxion!~fluxxion@c-73-15-5-244.hsd1.ca.comcast.net] has joined #kotlin [03:40]
RedNifre ...but that's not neat enough, I guess the next step is to do something like buildAListByRepeatedlyCallingTheMethodWhileThePredicateIsTrue(stdInput::readline) { it != null} and then do .map(appendALineBreak) and then .join or something... [03:40]
RedNifre What would be a good name for the function? produceWhile, maybe? Since it's a bit like takeWhile, but instead of taking from a list, it calls a Producer? Or was it called Supplier? [03:43]
zutat you could use generateSequence { someFunction() } and then use takeWhile, but what's wrong with a while loop? [03:46]
fluxxion [fluxxion!~fluxxion@c-73-15-5-244.hsd1.ca.comcast.net] has joined #kotlin [03:46]
RedNifre zutat the part with the .also is a bit weird to me, the code doesn't look very appealing in general, check it out: https://pastebin.com/yiMqt5Ww [03:52]
hnOsmium0001 [hnOsmium0001!uid453710@gateway/web/irccloud.com/x-vyxxbgdzqophhzrj] has joined #kotlin [03:53]
RedNifre How "dangerous" are experimental stdlib functions like buildList? [04:01]
RedNifre Never mind, adding the annotation everywhere is not an option anyway. [04:04]
orbyt_ [orbyt_!~orbyt@172.92.4.78] has joined #kotlin [05:43]
callq What is .run(){} doing that .apply(){} doesn't do? I'm looking at an example and can't figure out why he chose one over the other [07:20]
crabskuttles [crabskuttles!~crabskutt@2403:6200:8810:a013:25be:880b:7d09:ccb5] has joined #kotlin [07:47]
kupi [kupi!uid212005@gateway/web/irccloud.com/x-vfsmeyjszxcityxd] has joined #kotlin [07:54]
AmAVulcan [AmAVulcan!45ce3454@69.206.52.84] has joined #kotlin [07:59]
orbyt_ [orbyt_!~orbyt@172.92.4.78] has joined #kotlin [08:02]
lankanmon [lankanmon!~LKNnet@cpeb4fbe4e331bd-cm64777d632380.cpe.net.cable.rogers.com] has joined #kotlin [08:48]
raoul11 [raoul11!~raoul11@unaffiliated/raoul11] has joined #kotlin [09:24]
sunri5e [sunri5e!~sunri5e@unaffiliated/sunri5e] has joined #kotlin [09:42]