[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
newlispfanclub.alh.net • View topic - Nesting level of a list

Nesting level of a list

Q&A's, tips, howto's

Nesting level of a list

Postby cameyo » Mon May 27, 2019 8:50 am

cameyo
 
Posts: 97
Joined: Sun Mar 27, 2011 3:07 pm

Re: Nesting level of a list

Postby rickyboy » Mon May 27, 2019 2:52 pm

(λx. x x) (λx. x x)
rickyboy
 
Posts: 595
Joined: Fri Apr 08, 2005 7:13 pm
Location: Front Royal, Virginia

Re: Nesting level of a list

Postby cameyo » Mon May 27, 2019 9:02 pm

The magic of "map" :-)
cameyo
 
Posts: 97
Joined: Sun Mar 27, 2011 3:07 pm

Re: Nesting level of a list

Postby fdb » Mon May 27, 2019 9:42 pm

fdb
 
Posts: 49
Joined: Sat Nov 09, 2013 8:49 pm

Re: Nesting level of a list

Postby rickyboy » Mon May 27, 2019 11:26 pm

Excellent, fdb! Faster than mine by about a factor of 3 (on the sample input)! 2.5 times faster than the original.
(λx. x x) (λx. x x)
rickyboy
 
Posts: 595
Joined: Fri Apr 08, 2005 7:13 pm
Location: Front Royal, Virginia

Re: Nesting level of a list

Postby cameyo » Tue May 28, 2019 6:09 am

Wow!!!
Thanks fdb
cameyo
 
Posts: 97
Joined: Sun Mar 27, 2011 3:07 pm


Return to newLISP in the real world

Who is online

Users browsing this forum: No registered users and 1 guest

cron