This comment is reply for 2401 sumim: Squeak Smalltalk で。(隣り合う二項の差). Go to thread root.
sumim #2402(2007/08/22 14:55 GMT) [ Smalltalk ] Rating0/0=0.00
1 2 3
| diff | diff := [:xs | xs allButFirst - xs allButLast]. ^diff value: #(3 1 4 1 5 9 2 6 5) "=> #(-2 3 -3 4 4 -7 4 -1) "
Rating0/0=0.00-0+
[ reply ]
sumim
#2402()
[
Smalltalk
]
Rating0/0=0.00
Rating0/0=0.00-0+