Shift list elements to left by 3: Difference between revisions
→{{header|Euler}}: Sybntax highlight with Mediawiki markup
(→{{header|RPL}}: by list reversing) |
(→{{header|Euler}}: Sybntax highlight with Mediawiki markup) |
||
Line 943:
=={{header|Euler}}==
'''begin'''▼
'''new''' shl; '''new''' shl3;▼
▲begin
▲ new shl; new shl3;
'''if''' '''length''' ls < 2 '''then''' ls
▲ shl <- ` formal ls;
▲ shl3 <- ` formal ls; shl( shl( shl( ls ) ) ) ';
'''out''' shl3( ( 1, 2, 3, 4, 5, 6, 7, 8 ) )▼
'''end'''
▲ out shl3( ( 1, 2, 3, 4, 5, 6, 7, 8 ) )
$▼
▲$
=={{header|Excel}}==
|