4 ms·
I could imagine by destructuring he means e.g. unapply in Scala: https://docs.scala-lang.org/tour/extractor-objects.html https://docs.scala-lang.org/tour/extrac
by mazesc 8y ago
I could imagine by destructuring he means e.g. unapply in Scala: https://docs.scala-lang.org/tour/extractor-objects.html https://docs.scala-lang.org/tour/extractor-objects.html
- bogomipz 8y agoAh OK its a functional construct, this make sense. I have seen this in my brief exposure to Clojure. Thanks for the examples and links.
- fiddlerwoaroof 8y agoRecent JS versions have it too: > let {a,b} = {a: 1, b: 2} > a 1 > b 2