General Discussion Undecided where to post - do it here. |
Reply to Thread New Thread |
![]() |
#1 |
|
|
![]() |
![]() |
#2 |
|
|
![]() |
![]() |
#3 |
|
|
![]() |
![]() |
#4 |
|
The problem solved in ML; this solution is nicer.
This is programmed using a very functionel strategy, somewhat different from the PHP one used above. It seemed so much nicer that I tried translating it to php afterwards, but I ended up with a PHP program larger and uglier than the PHP program above. Code: Code
val chars = ["a", "b", "c"]; fun gen (a::arest) bs res = (gen (arest@bs) [] (a::res))@(gen arest (a::bs) res) | gen [] [] res = [res] | gen [] bs res = []; gen chars [] []; |
![]() |
![]() |
#5 |
|
|
![]() |
![]() |
#6 |
|
|
![]() |
Reply to Thread New Thread |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|