Pop-Up Thingie
Sidebar
>>> Magnum BBS <<<
Home
Forum
Files
Dark
Log in
Username
Password
Sidebar
Forum
Usenet
COMP.LANG.LISP
collect-repeats (Tasters Wanted)
From
HenHanna
@21:1/5 to
All
on Thu Aug 15 15:48:53 2024
(use gauche.sequence)
(define (ColRep x)
(filter (cut > (length <>) 1) (group-sequence x))) ; --- Doesn't work!
----------- possible to write this using CUT ?
(define (ColRep x)
(filter (lambda (x) (> (length x) 1)) (group-sequence x)))
(define (ColRep x)
(filter (^x (pair? (cdr x))) (group-sequence x)))
(print (ColRep '(1 2 4 4 0 5 5 8 8 8 6)) )
(print (ColRep '(4 4 0 5 5 8 8 8 6 1 2 3 4 1 2 3 4)))
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)
Who's Online
Recent Visitors
Guest
Sat Jan 18 03:20:37 2025
from
/bin/busybox Cat /proc/self/ex
via
Raw
Keyop
Sat Jan 18 00:51:07 2025
from
Huddersfield, West Yorkshire
via
SSH
Keyop
Fri Jan 17 21:28:01 2025
from
Huddersfield, West Yorkshire
via
SSH
Bob Worm
Fri Jan 17 21:14:15 2025
from
Wales, Uk
via
Telnet
Guest
Fri Jan 17 20:59:32 2025
from
/bin/busybox Cat /proc/self/ex
via
Raw
Ginger1
Fri Jan 17 20:52:11 2025
from
London
via
SSH
Keyop
Fri Jan 17 17:21:33 2025
from
Huddersfield, West Yorkshire
via
SSH
Bowenit
Fri Jan 17 17:09:45 2025
from
Weslaco, Tx
via
Telnet
System Info
Sysop:
Keyop
Location:
Huddersfield, West Yorkshire, UK
Users:
403
Nodes:
16 (
2
/
14
)
Uptime:
44:15:12
Calls:
8,407
Calls today:
2
Files:
13,171
Messages:
5,905,028