[erlang-questions 61] Re: A sudoku solver in Erlang compared to Python

Andreas Pauley apauley@REDACTED
Sun Mar 27 23:36:57 CEST 2011


On Sun, Mar 27, 2011 at 11:21 PM, Ahmed Omar <spawn.think@REDACTED> wrote:
> No problem, as said before u can also replace these lines :
> PeerSet = gb_sets:from_list(NonUniquePeers),
> PeersWithSelf = gb_sets:to_list(PeerSet),
> lists:delete(Square, PeersWithSelf).
> with just
> lists:delete(Square, lists:usort(NonUniquePeers)).

Thanks, done:
https://github.com/apauley/sudoku-in-erlang/commit/1852c68baf525524d21ea508dead3f51820141b5


> (don't forget to check the rest of the thread too ;))

Yes, thanks everyone, all the suggestions are awesome, I'm going
through them one by one :-)



More information about the erlang-questions mailing list