this is how to create a range function in #JavaScript
const xah_range = ((n) => [...Array(n).keys()] ) ;
It'll take 1 month to understand how that js code works.
involves spread operator, iterable, interface.
The semantics of js is more complex than perl python ruby lisp java.
Conversation
Notices
-
∑ XahLee (xahlee@noagendasocial.com)'s status on Monday, 01-Jan-2018 22:18:08 EST ∑ XahLee