ForNext
Only Do What Only You Can Do
048. extract substring
VBScript
JScript
Perl
PHP
Python
Ruby
PowerShell
Scala
"hello".substring(0,4)
F#
OCaml
String.sub "hello" 0 4
Haskell
drop 0 (take 4 "hello")
"hello".substring(0,4)
String.sub "hello" 0 4
drop 0 (take 4 "hello")