If self contains only '0' et '1', return the corresponding integer.

assert "101101".to_bin == 45

Property definitions

core $ Text :: to_bin
	# If `self` contains only '0' et '1', return the corresponding integer.
	#
	# ~~~
	# assert "101101".to_bin == 45
	# ~~~
	fun to_bin: Int do return a_to(2)
lib/core/text/abstract_text.nit:299,2--304,34