module Hamster::List
def span(&block)
def span(&block) return Tuple.new(self, EmptyList) unless block_given? Tuple.new(take_while(&block), drop_while(&block)) end
def span(&block) return Tuple.new(self, EmptyList) unless block_given? Tuple.new(take_while(&block), drop_while(&block)) end