ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
hightower3 has quit [Read error: Connection reset by peer]
hightower3 has joined #crystal-lang
straight-shoota has quit [Ping timeout: 245 seconds]
straight-shoota has joined #crystal-lang
straight-shoota has quit [Ping timeout: 256 seconds]
straight-shoota has joined #crystal-lang
_ht has joined #crystal-lang
Sankalp has quit [Ping timeout: 260 seconds]
alexherbo2 has joined #crystal-lang
Sankalp has joined #crystal-lang
Starfoxxes has quit [Ping timeout: 244 seconds]
alexherbo2 has quit [Ping timeout: 246 seconds]
Sankalp has quit [Ping timeout: 245 seconds]
Sankalp has joined #crystal-lang
Guest21 has joined #crystal-lang
<Guest21> Hi all, could anybody help me with the typing syntax?
<Guest21> This code `getter subtasks = [] of Task` declares an `Array` as a member of my class but how would I do this with a `Set`? I cannot figure out the syntax.
<Guest21> Sorry, I was mistaken. This not only declares the array but also initialises it on the same line.
alexherbo2 has joined #crystal-lang
<Guest21> Is this also possible with sets or would I have to declare and initialise it on different lines? (How would you do that?)
ua_ has quit [Ping timeout: 260 seconds]
egality has joined #crystal-lang
ua_ has joined #crystal-lang
<SamantazFox> Guest21: Hello! Is `Set(Task).new` what you're lookign for?
alexherbo2 has quit [Ping timeout: 246 seconds]
notzmv has quit [Ping timeout: 246 seconds]
<Guest21> SamantazFox: Yes that is exactly it! Thank you so much!
<Guest21> Unbelievable I was stuck this long on something that obvious in hindsight, thanks a ton for the help!
alexherbo2 has joined #crystal-lang
<SamantazFox> Guest21: You're welcome ^^
Guest21 has quit [Quit: Client closed]
alexherbo2 has quit [Remote host closed the connection]
brw has quit [Quit: The Lounge - https://thelounge.chat]
brw has joined #crystal-lang
_ht has quit [Quit: _ht]
brw has quit [Read error: Connection reset by peer]
brw9 has joined #crystal-lang