Home | History | Annotate | Download | only in threads

Lines Matching defs:fcmp

29 # fcmp lexicographically compares the fringes of two nested lists
30 def fcmp(l1, l2):
52 print fcmp(range(7), x) # 0; fringes are equal
53 print fcmp(range(6), x) # -1; 1st list ends early
54 print fcmp(x, range(6)) # 1; 2nd list ends early
55 print fcmp(range(8), x) # 1; 2nd list ends early
56 print fcmp(x, range(8)) # -1; 1st list ends early
57 print fcmp([1,[[2],8]],
59 print fcmp([1,[[3],8]],
61 print fcmp([1,[[2],8]],