TransWikia.com

JavaScript Puzzle about internationally-known fairy-tale

Puzzling Asked by CHERNOMOR on March 18, 2021

Hello world!
Learning OOP I came up on this Puzzle.
We can call this JPuzzle
Kinda simple, but no-one gave the right answer yet.
Here is the JPuzzle:


  • _=(..._)=>_

  • It is JavaScript

  • It is a true form

  • "Go there don’t know where bring it don’t know what"


What is it?

P.S. The Puzzle is not about the syntax, or how it works, or what it does. Think different.

One Answer

The answer is - Parametric Polymorphism. My functional expression above can take any kind and any number of inputs(arguments). And will simply return all of them as an array. But, can we solve such task any other way? "Go there don’t know where bring it don’t know what" - is not "bring me anything". So, random return is not the answer. If we go back to the fairy-tale, we'll see, that our hero brought some entity with no form, which returns anything you ask. You say food, it returns food, e.t.c. Parametric Polymorphism itself, as a concept, is what the king asked our hero to deliver.

Answered by CHERNOMOR on March 18, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP