fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 226: Delete last element from list
Idiom # 226: Delete last element from list
See
programming-idioms.org
:
Code
items.take items.count-1
What are effects?
Running Example
ex226 is items := ["eins", "zwei", "drei"] say (items.take items.count-1)
What are effects?
last changed: 2024-07-01
next: Idiom # 227: Copy list