It's strange that they sometimes use [] to specify a type, other times they use (). That doesn't look very consistent to me.
I like the use of [] though, it reminds me of Scala, which I liked before they did the scala 3 fork.
replies(3):
I like the use of [] though, it reminds me of Scala, which I liked before they did the scala 3 fork.
https://en.wikipedia.org/wiki/Generic_programming - Worth studying up on if you're unfamiliar with it.