Posts by Gilles 'SO- stop being evil' • 188 points
3 posts
-
0
votes1
answer31
viewsA: Write word in succession until the end of the cycle
Only parentheses are missing. # print_string String.sub palavra i (tamanho-i);; Error: This function has type string -> unit It is applied to too many arguments; maybe you forgot a `;'. You need…
-
0
votes3
answers134
viewsA: Prevent script from following symbolic links
Does not process ls. The test [ -L … ] identifies symbolic links. for i in "${DOMAIN[@]}"; do for f in "$HOMEDIR$x/mail/$i"/* "$HOMEDIR$x/mail/$i"/.*; do n="${f%%*/}" # o nome sem o diretório case…
-
7
votes1
answer1009
viewsA: Functional Programming and Referential Transparency
Referential transparency is a good property for functions that are internal to your program because it makes it easier to understand what code does. Functions that interact with the outside world…