equal
deleted
inserted
replaced
1719 begin |
1719 begin |
1720 (*>*) |
1720 (*>*) |
1721 primcorec lappend :: "'a llist \<Rightarrow> 'a llist \<Rightarrow> 'a llist" where |
1721 primcorec lappend :: "'a llist \<Rightarrow> 'a llist \<Rightarrow> 'a llist" where |
1722 "lnull xs \<Longrightarrow> lnull ys \<Longrightarrow> lnull (lappend xs ys)" | |
1722 "lnull xs \<Longrightarrow> lnull ys \<Longrightarrow> lnull (lappend xs ys)" | |
1723 "lhd (lappend xs ys) = lhd (if lnull xs then ys else xs)" | |
1723 "lhd (lappend xs ys) = lhd (if lnull xs then ys else xs)" | |
1724 "ltl (lappend xs ys) = ltl (if lnull xs then ys else xs)" |
1724 "ltl (lappend xs ys) = (if xs = LNil then ltl ys else lappend (ltl xs) ys)" |
1725 . |
1725 . |
1726 (*<*) |
1726 (*<*) |
1727 end |
1727 end |
1728 (*>*) |
1728 (*>*) |
1729 |
1729 |