[Tux] Rakudo v2020.12-128-g3235f3e42 (v6.d) on MoarVM 2020.12-98-gf6c505dae
csv-ip5xs0.816 - 0.834
csv-ip5xs-207.873 - 8.244
csv-parser25.711 - 27.855
csv-test-xs-200.392 - 0.392
test7.934 - 8.137
test-t1.823 - 1.937
test-t --race0.870 - 0.945
test-t-2030.213 - 31.172
test-t-20 --race9.441 - 9.579
10:41
tbrowder hi, why does list have .first but no .last? 11:53
it has begin/end head/tail
symmetry is lta 11:54
and it's confusing
sorry, no begin 11:57
so why no begin either? 11:58
lizmat tbrowder: because "last" already exists as a sub 12:01
so it would be confusing
you can add the :end adverb to .first 12:02
m: dd ^10 .first(Int, :end)
evalable6 9
lizmat list has begin ?
tbrowder forgot about last, sorry (but i did search in docs but must have missed seeing it). didn't know about :end, thnx. i guess i'll just have to say head/tail 100 times ;-D 12:04
lizmat dd ^10 .first(:end) 12:05
evalable6 9
lizmat I guess that's the equivalent of tail
also note that you can specify a number with head/tail
m: ^10 .tail(5)
evalable6
lizmat m: dd ^10 .tail(5)
evalable6 (5, 6, 7, 8, 9).Seq
lizmat m: dd ^10 .head(5)
evalable6 (0, 1, 2, 3, 4).Seq
lizmat you can't with .first 12:06