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
<FromGitter> <Blacksmoke16> those are not the same type
<FromGitter> <Blacksmoke16> hence the error
<FromGitter> <stellarpower> But how would I be recommended to combine them?
<FromGitter> <stellarpower> Surely I can append floats or strings to an array of either.
<FromGitter> <stellarpower> Can I do it without having to use `<<` on each value individually?
<FromGitter> <Blacksmoke16> got a quick playground link?
<FromGitter> <stellarpower> No, sorry, I could try and knock one up
<FromGitter> <stellarpower> I forgot about the playgrund
<FromGitter> <Blacksmoke16> that would help
<FromGitter> <stellarpower> https://play.crystal-lang.org/#/r/ddyd
<FromGitter> <stellarpower> I tihnk that's a MRE
<FromGitter> <stellarpower> I can't easily paste the original unfortunately, so it feels little more forced.
<FromGitter> <stellarpower> but I had an array of some preliminary values as `all`, and I wanted to append to it based on entries form the hash.
<FromGitter> <stellarpower> https://i.imgur.com/Z5VBIHA.png
<FromGitter> <stellarpower> See this is the problem with googling things
<FromGitter> <Blacksmoke16> https://play.crystal-lang.org/#/r/ddyh is best i can think of off the top of my head
<FromGitter> <Blacksmoke16> oh, https://play.crystal-lang.org/#/r/ddyi this is much better
<FromGitter> <stellarpower> Ah, brilliant, thanks.
<FromGitter> <stellarpower> The first one will be useful for more general cases. I hadn't thought that one could map `as`. Is it actuall a member function, or more like a keyword?
<FromGitter> <Blacksmoke16> I think it's one of those pseudo methods like nil?
<FromGitter> <stellarpower> Right yeah, figured so.
<FromGitter> <stellarpower> Anyeway, thanks a lot!
jhass has quit [Ping timeout: 240 seconds]
straight-shoota has quit [Ping timeout: 255 seconds]
straight-shoota has joined #crystal-lang
jhass has joined #crystal-lang
Sankalp has quit [Ping timeout: 240 seconds]
Sankalp has joined #crystal-lang
Sankalp has quit [Ping timeout: 276 seconds]
Sankalp has joined #crystal-lang
bastienleonard has quit [Ping timeout: 260 seconds]
ur5us has joined #crystal-lang
jmdaemon has quit [Ping timeout: 240 seconds]
hightower4 has quit [Remote host closed the connection]
llua has quit [Quit: <Rudolph> shell code is what greycat reads to kids when he tucks them in]
llua has joined #crystal-lang
bastienleonard has joined #crystal-lang
ur5us has quit [Ping timeout: 240 seconds]
_ht has joined #crystal-lang
notzmv has quit [Ping timeout: 260 seconds]
llua has quit [Ping timeout: 240 seconds]
ur5us has joined #crystal-lang
llua has joined #crystal-lang
ur5us has quit [Ping timeout: 264 seconds]
notzmv has joined #crystal-lang
Sankalp has quit [Ping timeout: 244 seconds]
_ht has quit [Remote host closed the connection]
jmdaemon has joined #crystal-lang
bastienleonard has quit [Ping timeout: 276 seconds]
markmarkmark has quit [Ping timeout: 248 seconds]
markmarkmark has joined #crystal-lang
markmarkmark has quit [Ping timeout: 240 seconds]
markmarkmark has joined #crystal-lang
hightower2 has joined #crystal-lang
hightower4 has joined #crystal-lang
hightower2 has quit [Ping timeout: 244 seconds]
hightower4 has quit [Remote host closed the connection]