Skip to content

cph-ab270/lisp-map-and-flatten

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

I added several versions of the flattena and map functions.

Mostly to experiment, but also to optimise the reccursion using an accumulator.

mapFlatten example with n nested list

(mapFlatten (lambda (a) (+ a 1)) (list 1 (list 2 3) 4 (list 5 (list 6 7)))) -> (2 3 4 5 6 7 8)

mapFlatten example with 2 dimensional list

(mapFlatten (lambda (a) (+ a 1)) (list 1 (list 2 3) 4 (list 5 6))) -> (2 3 4 5 6 7 )

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published