Substring/Top and tail: Difference between revisions
Content added Content deleted
(added a solution for Factor) |
m (→{{header|Factor}}: show imports; factor out repetition) |
||
Line 564: | Line 564: | ||
=={{header|Factor}}== |
=={{header|Factor}}== |
||
<lang factor> |
<lang factor>USING: io kernel sequences ; |
||
"Rosetta code" [ rest |
"Rosetta code" [ rest ] [ but-last ] [ rest but-last ] tri |
||
</lang> |
[ print ] tri@</lang> |
||
{{out}} |
{{out}} |
||
<pre> |
<pre> |
||
osetta code |
|||
Rosetta cod |
|||
osetta cod |
|||
</pre> |
</pre> |
||