trying some R like things in other languages