Skip to content

Commit

Permalink
compiler: simplify example for #47
Browse files Browse the repository at this point in the history
  • Loading branch information
Zilin Chen authored and Zilin Chen committed Jan 10, 2018
1 parent 2da2847 commit 3a31b6e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions cogent/tests/pass_ticket-e47.cogent
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
type RbtNode k v

type ElemAO a acc obsv = #{elem:a, acc:acc, obsv:obsv!}

type RbtConsumeF k v acc obsv = RbtElemAO k v acc obsv -> acc
type RbtCondF k v acc obsv = (RbtElemAO k v acc obsv)! -> Bool

type RbtElemAO k v acc obsv = ElemAO (RbtNode k v) acc obsv

rbtFTrue: all(k:< DS, v :<DS, acc, obsv). RbtCondF k v acc obsv
rbtFTrue: all(k:< DS, v :<DS, acc, obsv). (#{elem:RbtNode k v, acc:acc, obsv:obsv!})! -> Bool
rbtFTrue _ = True


0 comments on commit 3a31b6e

Please sign in to comment.