-1

Is there a programming language where :) is valid syntax (excluding custom defined templates or operator overloading etc)?

Yu Hao
  • 119,891
  • 44
  • 235
  • 294
goofballLogic
  • 37,883
  • 8
  • 44
  • 62

1 Answers1

2

Matlab. a(:) means "all the elements of a arranged as a column vector". Given liberal whitespace, you could also write it as a( :).

Oliver Charlesworth
  • 267,707
  • 33
  • 569
  • 680
  • Well - I guess that is a correct answer. I wonder if anyone can find a language for which it works without "liberal whitespace" – goofballLogic Mar 24 '12 at 17:53