Percolation/Bond percolation: Difference between revisions

m
→‎{{header|Go}}: User new and more efficient strings.Builder
m (→‎{{header|Go}}: User new and more efficient strings.Builder)
Line 417:
 
import (
"bytes"
"fmt"
"math/rand"
"strings"
"time"
)
Line 483:
 
func (g *grid) String() string {
var buf bytesstrings.BufferBuilder
// Don't really need to call Grow but it helps avoid multiple
// reallocations if the size is large.
Line 580:
p=0.90, 0.000
</pre>
 
=={{header|Haskell}}==
<lang haskell>{-# LANGUAGE OverloadedStrings #-}
1,707

edits