cons operator (|) with Keyword lists

后端 未结 0 1872
既然无缘
既然无缘 2020-12-21 08:37

I\'m trying to define a function where I specify part of a keyword list, and then match the remaining opts as the tail.

def my_func(foo: 22, bar: 42 | baz) do         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题