partition by parity by hirose

import List
main=interact(\u->sort[(' ':s>>[odd$read$'1':s],s++"\n")|s<-"":lines u]>>=snd)

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page