« first day (1687 days earlier)      last day (9 days later) » 

00:34
Scala why
addPart("I", Monad, false) {
      case (a: VAny, b: VFun) =>
        VList.from(ListHelpers.makeIterable(a).filter(x => !b(x).toBool))
      case (a: VAny, b: VAny) =>
        val temp = ListHelpers
          .interleave(ListHelpers.makeIterable(a), ListHelpers.makeIterable(b))
        if a.isInstanceOf[String] && b.isInstanceOf[String] then temp.mkString
        else temp
    },
case (a: VAny, b: VFun) is somehow unreachable
oh
I was using Monad
 
15 hours later…
15:50
@lyxal [user] Then may I recommend, instead of making a custom conversion, creating a helper method with a very short name, like def it(value: VAny): VList? Or maybe an extension method, so you can do value.lst?
[user] Also wow I have a lot to backread, looks like I muted this server at some point recently and forgot to unmute
@Bridget [RubenVerg] yeah suggested that too
@lyxal [user] It's not that a/b and lhs/rhs are always bad, I meant that when it's possible to use a more descriptive name (e.g., matrix/power), we should go for that more descriptive name
@Bridget [RubenVerg] ^
@Bridget [user] lol I should finish backreading before replying
[RubenVerg] oh no i do that too(:
 
7 hours later…
22:43
[lyxal ♦️] I mean, by the time you've made an extension, you might as well just import ListHelpers.makeIterable and use that without the ListHelpers

« first day (1687 days earlier)      last day (9 days later) »