Seq
View
to.zipWithIndex.map
VList extends Seq[VAny], SeqOps[VAny, Seq, VList]
def zipWithIndex: Iterator[(A, Int)]^{this} = new AbstractIterator[(A, Int)] { var idx = 0 override def knownSize = self.knownSize def hasNext = self.hasNext def next() = { val ret = (self.next(), idx) idx += 1 ret } }
ÞPƛ}5Θ
[2, 3, 5, 7, 11]
ÞP5Θ
ÞPƛ}4
val x: LazyList[VNum] = VNum(1) #:: x val v = VList(x) val useless = x.zipWithIndex
.map
.zipWithIndex
lst.zipWithIndex
jvm.runLocal
VList.from
x is a forward reference extending over the definition of x
lazy val
x.zipWithIndex.map { case (v, i) => v + i }
v.zipWithIndex
v + i
def zipWithIndex: Seq[(VAny, Int)] = lst.zipWithIndex
ζ
γ
<value> <operation on value> <structureLambda> <reference to original value before lambda>
⬱
Vyxal g, 50 bitsv2, 6.25 bytes Þp'⁰+nJæ Þp'⁰+nJæ Þp # a list of infinite primes ' # filtered by ⁰+ # (p+q) nJ # (p+q)"q ...
g
⑩
snow
#:
#:R
#:@
#::
λ
ÞṬȦu
“
N
Fh
/h
ᶤḋ
find-by:
ᶤ
Ω<stuff>}h
ᶤϩ<stuff>
ϩ
num, list
λ3İ}
¬
Ω"frob"c¬}h
/¬"frob"ch
¬id
bothisgood.gif
_
a: str|lst, b: num -> a[b:]
#