You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lists will be implemented as arrays in JS. However, immutable.
Notation
[expr, expr]
no, because tensors are more important right now
(expr, expr)
weird, but nice
can be confusing
() will clash with None (doesn't have to)
can be empty list, but then these function calls can't be equivalent: fn!, fn()
there are functions that can take empty list as a "valid data": (Length () = 0) = (Length ! = !), (1,2,3) -> Map (v => v + 1), () -> Map fn, error: ! -> Map fn
(expr,) is single-element list
Python comma operator creates tuples
JS comma operator is a bad part, so can be altered
The text was updated successfully, but these errors were encountered:
Lists – ordered collection of any type
Lists will be implemented as arrays in JS. However, immutable.
Notation
[expr, expr]
(expr, expr)
()
will clash with None (doesn't have to)fn!
,fn()
(Length () = 0) = (Length ! = !)
,(1,2,3) -> Map (v => v + 1)
,() -> Map fn
, error:! -> Map fn
(expr,)
is single-element listcomma
operator creates tuplescomma
operator is a bad part, so can be alteredThe text was updated successfully, but these errors were encountered: