Test of syntax highlight
Test of the syntaxhighlighter:
# generic sequence trait
trait seq<T>
def empty : boolean
def head : T
def tail : seq<T>
def to_string => '[' ++ join(self, ', ') ++ ']'
def concat (other:seq<T>)
=> other.empty ? self : shift(other, reverse)
def reverse => shift([], self)
Labels: kin, programming
0 Comments:
Post a Comment
<< Home