Top "Equivalent" questions

This tag is used for questions about similarities between any of various programming constructs.

Python pandas equivalent for replace

In R, there is a rather useful replace function. Essentially, it does conditional re-assignment in a given column of a …

python pandas equivalent
What is the C# equivalent of CType in VB.NET?

I am trying to convert the example provided in MSDN article Creating Dynamic Data Entry User Interfaces to C#, but …

casting equivalent vb.net-to-c# ctype
Java TreeMap equivalent in C#?

Most places I've consulted say to use SortedList, but the problem is that the program I'm porting actually uses duplicate …

c# java treemap equivalent
Readable C# equivalent of Python slice operation

What is the C# equivalent of Python slice operations? my_list = ['a', 'b', 'c', 'd', 'e', 'f', 'g'] result1 = my_…

c# python slice equivalent
What is the Python 3 equivalent of %s in strings?

I've made some basic progress in python before, nothing more than command land algebra calculators to do math homework, using …

python-2.7 python-3.x equivalent
Equivalent lsof -i in Solaris

I have a fast question. I want to know what is the losf -i equivalent command in a Solaris system. …

linux unix command solaris equivalent
What is the jQuery equivalent to document.forms[0].elements[i].value;?

What is the jquery equivalent to: document.forms[0].elements[i].value;? I don't know how to travel through a form …

javascript jquery equivalent
php sed like functionality

I am quite familiar with sed on bash shell, so I do cat $myfile | egrep $pattern | sed -e 's/$pattern/$…

php regex sed equivalent
How to know if all the cells have the same value in some column

How to know if all the cells have the same value in some column (title changed) I want to have …

sql sql-server tsql conditional-statements equivalent
What's the C++ idiom equivalent to the Java static block?

I have a class with some static members, and I want to run some code to initialize them (suppose this …

java c++ initialization equivalent static-block