Top "Built-in" questions

Built-in functions, modules and classes are standard parts of a programming language or framework.

Extract file extension from file path

How can I extract the extension of a file given a file path as a character? I know I can …

r file-extension built-in
Python built-in function "compile". What is it used for?

I came across a built-in function compile today. Though i read the documentation but still do not understand it's usage …

python built-in
Are there builtin functions for elementwise boolean operators over boolean lists?

For example, if you have n lists of bools of the same length, then elementwise boolean AND should return another …

python list built-in boolean-operations elementwise-operations
How to split a list into equal sized lists in Groovy?

If I have this: def array = [1,2,3,4,5,6] Is there some built-in which allows me to do this ( or something similar ): array.…

list groovy built-in
Python - os.path doesn't exist: AttributeError: 'module' object has no attribute 'path'

Investigating a strange error that I started getting all of a sudden with gdb-python, I reduced it down to this: …

python path python-import corruption built-in
Built-in binary search tree in Python?

Are there any self-balancing binary search tree (RED-BLACK, AVL or others) built-in types in Python 2.7 or Python 3.x? I am …

python binary-search-tree built-in
How does math.min actually work?

I understand that all of the math functions in java are built in. But I was wondering out of curiosity …

java math min built-in
itertools.ifilter Vs. filter Vs. list comprehensions

I am trying to become more familiar with the itertools module and have found a function called ifilter. From what …

python function module built-in
Java ScriptEngine supported languages

Java has a ScriptEngine system that allows you to run/evaluate statements in a different language. I know for a …

java built-in scriptengine
Haskell replace element in list

Is there any built-in function to replace an element at a given index in haskell? Example: replaceAtIndex(2,"foo",["bar","bar","…

haskell built-in