Top "Square-bracket" questions

The symbols "[" and "]", commonly used in programming languages.

What is the difference between curly brace and square bracket in Python?

what is the difference between curly brace and square bracket in python? A ={1,2} B =[1,2] when I print A and B …

python syntax curly-braces square-bracket
Nested maps in Golang

func main() { var data = map[string]string{} data["a"] = "x" data["b"] = "x" data["c"] = "x" fmt.Println(data) } It …

dictionary go square-bracket
PHP Difference between array() and []

I'm writing a PHP app and I want to make sure it will work with no errors. The original code: &…

php arrays syntax square-bracket
what is the purpose of using square brackets in json?

I am new to json. Some json examples i have seen have data within the curly braces and some json …

json square-bracket
Overload bracket operators [] to get and set

I have the following class: class risc { // singleton protected: static unsigned long registers[8]; public: unsigned long operator [](int i) { return …

c++ indexing overloading square-bracket
List of all unicode's open/close brackets?

What is a list of every unicode bracket-like characters (including, for example: {}[]()<>)? What is a good way to …

unicode square-bracket braces parentheses curly-brackets
Copy file with square brackets [ ] in the filename and use * wildcard

I'm using PowerShell on Windows 7, and writing a script to copy a bunch of files from one folder structure to …

powershell copy square-bracket
When are square brackets required in a Bash if statement?

Usually, I use square brackets in the if statement: if [ "$name" = 'Bob' ]; then ... But, when I check if grep succeeded …

bash if-statement square-bracket
Does a dot have to be escaped in a character class (square brackets) of a regular expression?

A dot . in a regular expression matches any single character. In order for regex to match a dot, the dot …

regex standards standards-compliance square-bracket
python regex match optional square brackets

I have the following strings: 1 "R J BRUCE & OTHERS V B J & W L A EDWARDS And Ors …

python regex optional brackets square-bracket