Last active
September 24, 2021 09:47
-
-
Save grevych/2b353a9302b715f57084b7564519d131 to your computer and use it in GitHub Desktop.
Revisions
-
grevych revised this gist
Sep 24, 2021 . 1 changed file with 1 addition and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,9 +4,7 @@ (cond [(empty? L) 1] [(equal? (length L) 1) (FUNO(first L))] [(* (FUNO(first L)) (FUNO (rest L)))] ) ] [else L] -
grevych created this gist
Sep 24, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ (define (FUNO L) (cond [(list? L) (cond [(empty? L) 1] [(equal? (length L) 1) (FUNO(first L))] [else (* (FUNO(first L)) (FUNO (rest L))) ] ) ] [else L] ) ) (write(FUNO '(10 (8 (1) (1)) (20 (1) (1)))) ) #1600