Bake dates into snippets

This commit is contained in:
Isabelle Viktoria Maciohsek
2021-06-13 19:38:10 +03:00
parent 4c07c3ceb0
commit cbc78ee450
159 changed files with 1024 additions and 706 deletions

View File

@ -1,6 +1,8 @@
--- ---
title: add_days title: add_days
tags: date,intermediate tags: date,intermediate
firstSeen: 2020-10-28T16:19:04+02:00
lastUpdated: 2020-10-28T16:19:04+02:00
--- ---
Calculates the date of `n` days from the given date. Calculates the date of `n` days from the given date.

View File

@ -1,6 +1,8 @@
--- ---
title: all_equal title: all_equal
tags: list,beginner tags: list,beginner
firstSeen: 2019-08-20T11:39:18+03:00
lastUpdated: 2020-10-11T13:40:42+03:00
--- ---
Checks if all elements in a list are equal. Checks if all elements in a list are equal.

View File

@ -1,6 +1,8 @@
--- ---
title: all_unique title: all_unique
tags: list,beginner tags: list,beginner
firstSeen: 2018-04-01T11:03:09+03:00
lastUpdated: 2021-01-07T23:30:28+02:00
--- ---
Checks if all the values in a list are unique. Checks if all the values in a list are unique.

View File

@ -1,6 +1,8 @@
--- ---
title: arithmetic_progression title: arithmetic_progression
tags: math,beginner tags: math,beginner
firstSeen: 2020-07-28T13:57:33+03:00
lastUpdated: 2020-11-02T19:27:07+02:00
--- ---
Generates a list of numbers in the arithmetic progression starting with the given positive integer and up to the specified limit. Generates a list of numbers in the arithmetic progression starting with the given positive integer and up to the specified limit.

View File

@ -1,6 +1,8 @@
--- ---
title: average title: average
tags: math,list,beginner tags: math,list,beginner
firstSeen: 2018-01-27T07:16:41+02:00
lastUpdated: 2020-11-02T19:27:07+02:00
--- ---
Calculates the average of two or more numbers. Calculates the average of two or more numbers.

View File

@ -1,6 +1,8 @@
--- ---
title: average_by title: average_by
tags: math,list,intermediate tags: math,list,intermediate
firstSeen: 2019-08-20T11:55:10+03:00
lastUpdated: 2020-11-02T19:27:07+02:00
--- ---
Calculates the average of a list, after mapping each element to a value using the provided function. Calculates the average of a list, after mapping each element to a value using the provided function.

View File

@ -1,6 +1,8 @@
--- ---
title: bifurcate title: bifurcate
tags: list,intermediate tags: list,intermediate
firstSeen: 2019-08-20T12:37:06+03:00
lastUpdated: 2020-11-02T19:27:07+02:00
--- ---
Splits values into two groups, based on the result of the given `filter` list. Splits values into two groups, based on the result of the given `filter` list.

View File

@ -1,6 +1,8 @@
--- ---
title: bifurcate_by title: bifurcate_by
tags: list,intermediate tags: list,intermediate
firstSeen: 2019-08-20T12:41:21+03:00
lastUpdated: 2020-11-02T19:27:07+02:00
--- ---
Splits values into two groups, based on the result of the given filtering function. Splits values into two groups, based on the result of the given filtering function.

View File

@ -1,6 +1,8 @@
--- ---
title: binomial_coefficient title: binomial_coefficient
tags: math,beginner tags: math,beginner
firstSeen: 2020-10-04T11:56:31+03:00
lastUpdated: 2020-11-02T19:27:07+02:00
--- ---
Calculates the number of ways to choose `k` items from `n` items without repetition and without order. Calculates the number of ways to choose `k` items from `n` items without repetition and without order.

View File

@ -1,6 +1,8 @@
--- ---
title: byte_size title: byte_size
tags: string,beginner tags: string,beginner
firstSeen: 2018-02-01T10:19:59+02:00
lastUpdated: 2020-11-02T19:27:07+02:00
--- ---
Returns the length of a string in bytes. Returns the length of a string in bytes.

View File

@ -1,6 +1,8 @@
--- ---
title: camel title: camel
tags: string,regexp,intermediate tags: string,regexp,intermediate
firstSeen: 2019-08-21T08:59:54+03:00
lastUpdated: 2020-11-02T19:27:07+02:00
--- ---
Converts a string to camelcase. Converts a string to camelcase.

View File

@ -1,6 +1,8 @@
--- ---
title: capitalize title: capitalize
tags: string,intermediate tags: string,intermediate
firstSeen: 2018-02-01T10:19:59+02:00
lastUpdated: 2020-11-02T19:27:07+02:00
--- ---
Capitalizes the first letter of a string. Capitalizes the first letter of a string.

View File

@ -1,6 +1,8 @@
--- ---
title: capitalize_every_word title: capitalize_every_word
tags: string,beginner tags: string,beginner
firstSeen: 2018-02-01T10:19:59+02:00
lastUpdated: 2020-11-02T19:27:07+02:00
--- ---
Capitalizes the first letter of every word in a string. Capitalizes the first letter of every word in a string.

View File

@ -1,6 +1,8 @@
--- ---
title: cast_list title: cast_list
tags: list,intermediate tags: list,intermediate
firstSeen: 2019-08-20T12:47:43+03:00
lastUpdated: 2020-11-02T19:27:07+02:00
--- ---
Casts the provided value as a list if it's not one. Casts the provided value as a list if it's not one.

View File

@ -2,6 +2,8 @@
title: celsius_to_fahrenheit title: celsius_to_fahrenheit
tags: math,beginner tags: math,beginner
unlisted: true unlisted: true
firstSeen: 2020-04-05T12:29:03+03:00
lastUpdated: 2021-01-04T12:47:04+02:00
--- ---
Converts Celsius to Fahrenheit. Converts Celsius to Fahrenheit.

View File

@ -1,6 +1,8 @@
--- ---
title: check_prop title: check_prop
tags: function,intermediate tags: function,intermediate
firstSeen: 2020-01-02T16:49:25+02:00
lastUpdated: 2020-11-02T19:27:07+02:00
--- ---
Creates a function that will invoke a predicate function for the specified property on a given object. Creates a function that will invoke a predicate function for the specified property on a given object.

View File

@ -1,6 +1,8 @@
--- ---
title: chunk title: chunk
tags: list,intermediate tags: list,intermediate
firstSeen: 2018-01-09T06:39:42+02:00
lastUpdated: 2020-11-02T19:27:07+02:00
--- ---
Chunks a list into smaller lists of a specified size. Chunks a list into smaller lists of a specified size.

View File

@ -1,6 +1,8 @@
--- ---
title: chunk_into_n title: chunk_into_n
tags: list,intermediate tags: list,intermediate
firstSeen: 2020-10-12T22:11:30+03:00
lastUpdated: 2020-10-23T05:35:06+03:00
--- ---
Chunks a list into `n` smaller lists. Chunks a list into `n` smaller lists.

View File

@ -1,6 +1,8 @@
--- ---
title: clamp_number title: clamp_number
tags: math,beginner tags: math,beginner
firstSeen: 2019-08-20T12:50:38+03:00
lastUpdated: 2020-11-02T19:27:07+02:00
--- ---
Clamps `num` within the inclusive range specified by the boundary values. Clamps `num` within the inclusive range specified by the boundary values.

View File

@ -1,6 +1,8 @@
--- ---
title: collect_dictionary title: collect_dictionary
tags: dictionary,intermediate tags: dictionary,intermediate
firstSeen: 2020-04-07T21:15:06+03:00
lastUpdated: 2020-11-02T19:27:07+02:00
--- ---
Inverts a dictionary with non-unique hashable values. Inverts a dictionary with non-unique hashable values.

View File

@ -1,6 +1,8 @@
--- ---
title: combine_values title: combine_values
tags: dictionary,intermediate tags: dictionary,intermediate
firstSeen: 2021-03-07T12:30:47+02:00
lastUpdated: 2021-04-04T14:32:35+03:00
--- ---
Combines two or more dictionaries, creating a list of values for each key. Combines two or more dictionaries, creating a list of values for each key.

View File

@ -1,6 +1,8 @@
--- ---
title: compact title: compact
tags: list,beginner tags: list,beginner
firstSeen: 2018-01-19T12:17:06+02:00
lastUpdated: 2020-11-02T19:27:07+02:00
--- ---
Removes falsy values from a list. Removes falsy values from a list.

View File

@ -1,6 +1,8 @@
--- ---
title: compose title: compose
tags: function,advanced tags: function,advanced
firstSeen: 2020-01-02T15:51:20+02:00
lastUpdated: 2020-11-02T19:27:07+02:00
--- ---
Performs right-to-left function composition. Performs right-to-left function composition.

View File

@ -1,6 +1,8 @@
--- ---
title: compose_right title: compose_right
tags: function,advanced tags: function,advanced
firstSeen: 2020-01-02T15:51:26+02:00
lastUpdated: 2020-11-02T19:27:07+02:00
--- ---
Performs left-to-right function composition. Performs left-to-right function composition.

View File

@ -1,6 +1,8 @@
--- ---
title: count_by title: count_by
tags: list,intermediate tags: list,intermediate
firstSeen: 2018-02-07T10:33:47+02:00
lastUpdated: 2020-11-02T19:27:07+02:00
--- ---
Groups the elements of a list based on the given function and returns the count of elements in each group. Groups the elements of a list based on the given function and returns the count of elements in each group.

View File

@ -1,6 +1,8 @@
--- ---
title: count_occurrences title: count_occurrences
tags: list,beginner tags: list,beginner
firstSeen: 2021-01-10T00:00:36+02:00
lastUpdated: 2021-01-10T00:00:36+02:00
--- ---
Counts the occurrences of a value in a list. Counts the occurrences of a value in a list.

View File

@ -1,6 +1,8 @@
--- ---
title: cumsum title: cumsum
tags: list,intermediate tags: list,intermediate
firstSeen: 2021-01-13T23:30:41+02:00
lastUpdated: 2021-01-13T23:30:41+02:00
--- ---
Creates a list of partial sums. Creates a list of partial sums.

View File

@ -1,6 +1,8 @@
--- ---
title: curry title: curry
tags: function,intermediate tags: function,intermediate
firstSeen: 2020-01-02T16:14:50+02:00
lastUpdated: 2020-11-02T19:27:07+02:00
--- ---
Curries a function. Curries a function.

View File

@ -1,6 +1,8 @@
--- ---
title: daterange title: daterange
tags: date,intermediate tags: date,intermediate
firstSeen: 2020-10-28T16:19:14+02:00
lastUpdated: 2021-01-07T23:30:28+02:00
--- ---
Creates a list of dates between `start` (inclusive) and `end` (not inclusive). Creates a list of dates between `start` (inclusive) and `end` (not inclusive).

View File

@ -1,6 +1,8 @@
--- ---
title: days_ago title: days_ago
tags: date,intermediate tags: date,intermediate
firstSeen: 2020-10-28T16:19:30+02:00
lastUpdated: 2020-10-28T16:19:30+02:00
--- ---
Calculates the date of `n` days ago from today. Calculates the date of `n` days ago from today.

View File

@ -1,6 +1,8 @@
--- ---
title: days_diff title: days_diff
tags: date,beginner tags: date,beginner
firstSeen: 2020-10-28T16:19:39+02:00
lastUpdated: 2020-10-28T16:19:39+02:00
--- ---
Calculates the day difference between two dates. Calculates the day difference between two dates.

View File

@ -1,6 +1,8 @@
--- ---
title: days_from_now title: days_from_now
tags: date,intermediate tags: date,intermediate
firstSeen: 2020-10-28T16:19:51+02:00
lastUpdated: 2020-10-28T16:19:51+02:00
--- ---
Calculates the date of `n` days from today. Calculates the date of `n` days from today.

View File

@ -1,6 +1,8 @@
--- ---
title: decapitalize title: decapitalize
tags: string,intermediate tags: string,intermediate
firstSeen: 2018-02-01T10:19:59+02:00
lastUpdated: 2020-11-02T19:27:53+02:00
--- ---
Decapitalizes the first letter of a string. Decapitalizes the first letter of a string.

View File

@ -1,6 +1,8 @@
--- ---
title: deep_flatten title: deep_flatten
tags: list,recursion,intermediate tags: list,recursion,intermediate
firstSeen: 2018-01-16T16:54:14+02:00
lastUpdated: 2020-12-29T19:53:45+02:00
--- ---
Deep flattens a list. Deep flattens a list.

View File

@ -1,6 +1,8 @@
--- ---
title: degrees_to_rads title: degrees_to_rads
tags: math,beginner tags: math,beginner
firstSeen: 2019-10-15T14:31:11+03:00
lastUpdated: 2020-11-02T19:27:53+02:00
--- ---
Converts an angle from degrees to radians. Converts an angle from degrees to radians.

View File

@ -1,6 +1,8 @@
--- ---
title: delay title: delay
tags: function,intermediate tags: function,intermediate
firstSeen: 2020-01-02T16:24:51+02:00
lastUpdated: 2020-11-02T19:27:53+02:00
--- ---
Invokes the provided function after `ms` milliseconds. Invokes the provided function after `ms` milliseconds.

View File

@ -1,6 +1,8 @@
--- ---
title: dict_to_list title: dict_to_list
tags: dictionary,list,intermediate tags: dictionary,list,intermediate
firstSeen: 2020-10-16T21:24:14+03:00
lastUpdated: 2020-11-02T19:27:53+02:00
--- ---
Converts a dictionary to a list of tuples. Converts a dictionary to a list of tuples.

View File

@ -1,6 +1,8 @@
--- ---
title: difference title: difference
tags: list,beginner tags: list,beginner
firstSeen: 2018-01-20T16:16:44+02:00
lastUpdated: 2020-11-02T19:27:53+02:00
--- ---
Calculates the difference between two iterables, without filtering duplicate values. Calculates the difference between two iterables, without filtering duplicate values.

View File

@ -1,6 +1,8 @@
--- ---
title: difference_by title: difference_by
tags: list,function,intermediate tags: list,function,intermediate
firstSeen: 2018-02-08T15:59:27+02:00
lastUpdated: 2020-11-02T19:27:53+02:00
--- ---
Returns the difference between two lists, after applying the provided function to each list element of both. Returns the difference between two lists, after applying the provided function to each list element of both.

View File

@ -1,6 +1,8 @@
--- ---
title: digitize title: digitize
tags: math,list,beginner tags: math,list,beginner
firstSeen: 2019-08-20T13:00:27+03:00
lastUpdated: 2020-09-15T16:13:06+03:00
--- ---
Converts a number to a list of digits. Converts a number to a list of digits.

View File

@ -1,6 +1,8 @@
--- ---
title: drop title: drop
tags: list,beginner tags: list,beginner
firstSeen: 2020-03-10T21:59:41+02:00
lastUpdated: 2020-11-02T19:27:53+02:00
--- ---
Returns a list with `n` elements removed from the left. Returns a list with `n` elements removed from the left.

View File

@ -1,6 +1,8 @@
--- ---
title: drop_right title: drop_right
tags: list,beginner tags: list,beginner
firstSeen: 2020-03-10T21:59:41+02:00
lastUpdated: 2020-11-02T19:27:53+02:00
--- ---
Returns a list with `n` elements removed from the right. Returns a list with `n` elements removed from the right.

View File

@ -1,6 +1,8 @@
--- ---
title: every title: every
tags: list,intermediate tags: list,intermediate
firstSeen: 2019-08-20T11:34:24+03:00
lastUpdated: 2020-11-02T19:27:53+02:00
--- ---
Checks if the provided function returns `True` for every element in the list. Checks if the provided function returns `True` for every element in the list.

View File

@ -1,6 +1,8 @@
--- ---
title: every_nth title: every_nth
tags: list,beginner tags: list,beginner
firstSeen: 2019-08-20T13:10:12+03:00
lastUpdated: 2020-11-02T19:27:53+02:00
--- ---
Returns every `nth` element in a list. Returns every `nth` element in a list.

View File

@ -1,6 +1,8 @@
--- ---
title: factorial title: factorial
tags: math,recursion,beginner tags: math,recursion,beginner
firstSeen: 2018-01-27T07:29:56+02:00
lastUpdated: 2020-09-15T16:13:06+03:00
--- ---
Calculates the factorial of a number. Calculates the factorial of a number.

View File

@ -2,6 +2,8 @@
title: fahrenheit_to_celsius title: fahrenheit_to_celsius
tags: math,beginner tags: math,beginner
unlisted: true unlisted: true
firstSeen: 2020-04-05T12:29:03+03:00
lastUpdated: 2021-01-04T12:47:04+02:00
--- ---
Converts Fahrenheit to Celsius. Converts Fahrenheit to Celsius.

View File

@ -1,6 +1,8 @@
--- ---
title: fibonacci title: fibonacci
tags: math,list,intermediate tags: math,list,intermediate
firstSeen: 2018-10-06T06:06:33+03:00
lastUpdated: 2020-11-02T19:27:53+02:00
--- ---
Generates a list, containing the Fibonacci sequence, up until the nth term. Generates a list, containing the Fibonacci sequence, up until the nth term.

View File

@ -1,6 +1,8 @@
--- ---
title: filter_non_unique title: filter_non_unique
tags: list,beginner tags: list,beginner
firstSeen: 2019-08-20T13:13:51+03:00
lastUpdated: 2020-11-02T19:27:53+02:00
--- ---
Creates a list with the non-unique values filtered out. Creates a list with the non-unique values filtered out.

View File

@ -1,6 +1,8 @@
--- ---
title: filter_unique title: filter_unique
tags: list,beginner tags: list,beginner
firstSeen: 2019-10-02T20:06:24+03:00
lastUpdated: 2020-11-02T19:27:53+02:00
--- ---
Creates a list with the unique values filtered out. Creates a list with the unique values filtered out.

View File

@ -1,6 +1,8 @@
--- ---
title: find title: find
tags: list,beginner tags: list,beginner
firstSeen: 2020-03-10T22:38:48+02:00
lastUpdated: 2020-11-02T19:27:53+02:00
--- ---
Finds the value of the first element in the given list that satisfies the provided testing function. Finds the value of the first element in the given list that satisfies the provided testing function.

View File

@ -1,6 +1,8 @@
--- ---
title: find_index title: find_index
tags: list,intermediate tags: list,intermediate
firstSeen: 2020-03-10T22:38:48+02:00
lastUpdated: 2020-11-02T19:27:53+02:00
--- ---
Finds the index of the first element in the given list that satisfies the provided testing function. Finds the index of the first element in the given list that satisfies the provided testing function.

View File

@ -1,6 +1,8 @@
--- ---
title: find_index_of_all title: find_index_of_all
tags: list,intermediate tags: list,intermediate
firstSeen: 2020-10-11T13:45:19+03:00
lastUpdated: 2020-11-02T19:27:53+02:00
--- ---
Finds the indexes of all elements in the given list that satisfy the provided testing function. Finds the indexes of all elements in the given list that satisfy the provided testing function.

View File

@ -1,6 +1,8 @@
--- ---
title: find_key title: find_key
tags: dictionary,intermediate tags: dictionary,intermediate
firstSeen: 2020-04-16T19:13:20+03:00
lastUpdated: 2020-11-02T19:27:53+02:00
--- ---
Finds the first key in the provided dictionary that has the given value. Finds the first key in the provided dictionary that has the given value.

View File

@ -1,6 +1,8 @@
--- ---
title: find_keys title: find_keys
tags: dictionary,intermediate tags: dictionary,intermediate
firstSeen: 2020-04-16T19:17:13+03:00
lastUpdated: 2020-11-02T19:27:53+02:00
--- ---
Finds all keys in the provided dictionary that have the given value. Finds all keys in the provided dictionary that have the given value.

View File

@ -1,6 +1,8 @@
--- ---
title: find_last title: find_last
tags: list,beginner tags: list,beginner
firstSeen: 2020-03-10T22:38:48+02:00
lastUpdated: 2020-11-02T19:27:53+02:00
--- ---
Finds the value of the last element in the given list that satisfies the provided testing function. Finds the value of the last element in the given list that satisfies the provided testing function.

View File

@ -1,6 +1,8 @@
--- ---
title: find_last_index title: find_last_index
tags: list,beginner tags: list,beginner
firstSeen: 2020-03-10T22:38:48+02:00
lastUpdated: 2020-11-02T19:27:53+02:00
--- ---
Finds the index of the last element in the given list that satisfies the provided testing function. Finds the index of the last element in the given list that satisfies the provided testing function.

View File

@ -1,6 +1,8 @@
--- ---
title: find_parity_outliers title: find_parity_outliers
tags: list,math,intermediate tags: list,math,intermediate
firstSeen: 2020-01-08T18:54:35+02:00
lastUpdated: 2020-11-02T19:27:53+02:00
--- ---
Finds the items that are parity outliers in a given list. Finds the items that are parity outliers in a given list.

View File

@ -1,6 +1,8 @@
--- ---
title: flatten title: flatten
tags: list,intermediate tags: list,intermediate
firstSeen: 2019-09-19T15:46:10+03:00
lastUpdated: 2020-11-02T19:27:53+02:00
--- ---
Flattens a list of lists once. Flattens a list of lists once.

View File

@ -1,6 +1,8 @@
--- ---
title: for_each title: for_each
tags: list,beginner tags: list,beginner
firstSeen: 2020-03-15T12:54:08+02:00
lastUpdated: 2020-09-15T16:13:06+03:00
--- ---
Executes the provided function once for each list element. Executes the provided function once for each list element.

View File

@ -1,6 +1,8 @@
--- ---
title: for_each_right title: for_each_right
tags: list,beginner tags: list,beginner
firstSeen: 2020-03-15T12:54:08+02:00
lastUpdated: 2020-09-15T16:13:06+03:00
--- ---
Executes the provided function once for each list element, starting from the list's last element. Executes the provided function once for each list element, starting from the list's last element.

View File

@ -1,6 +1,8 @@
--- ---
title: frequencies title: frequencies
tags: list,intermediate tags: list,intermediate
firstSeen: 2020-03-15T12:54:08+02:00
lastUpdated: 2020-11-02T19:27:53+02:00
--- ---
Creates a dictionary with the unique values of a list as keys and their frequencies as the values. Creates a dictionary with the unique values of a list as keys and their frequencies as the values.

View File

@ -1,6 +1,8 @@
--- ---
title: from_iso_date title: from_iso_date
tags: date,intermediate tags: date,intermediate
firstSeen: 2020-10-28T16:20:04+02:00
lastUpdated: 2021-01-07T23:30:28+02:00
--- ---
Converts a date from its ISO-8601 representation. Converts a date from its ISO-8601 representation.

View File

@ -1,6 +1,8 @@
--- ---
title: gcd title: gcd
tags: math,beginner tags: math,beginner
firstSeen: 2018-01-08T16:26:35+02:00
lastUpdated: 2020-09-15T16:13:06+03:00
--- ---
Calculates the greatest common divisor of a list of numbers. Calculates the greatest common divisor of a list of numbers.

View File

@ -1,6 +1,8 @@
--- ---
title: geometric_progression title: geometric_progression
tags: math,list,intermediate tags: math,list,intermediate
firstSeen: 2020-10-04T12:19:28+03:00
lastUpdated: 2020-11-02T19:28:05+02:00
--- ---
Initializes a list containing the numbers in the specified range where `start` and `end` are inclusive and the ratio between two terms is `step`. Initializes a list containing the numbers in the specified range where `start` and `end` are inclusive and the ratio between two terms is `step`.

View File

@ -1,6 +1,8 @@
--- ---
title: get title: get
tags: dictionary,list,intermediate tags: dictionary,list,intermediate
firstSeen: 2020-10-28T12:21:39+02:00
lastUpdated: 2020-10-28T12:21:39+02:00
--- ---
Retrieves the value of the nested key indicated by the given selector list from a dictionary or list. Retrieves the value of the nested key indicated by the given selector list from a dictionary or list.

View File

@ -1,6 +1,8 @@
--- ---
title: group_by title: group_by
tags: list,dictionary,intermediate tags: list,dictionary,intermediate
firstSeen: 2019-08-20T13:29:00+03:00
lastUpdated: 2020-11-02T19:28:05+02:00
--- ---
Groups the elements of a list based on the given function. Groups the elements of a list based on the given function.

View File

@ -1,6 +1,8 @@
--- ---
title: hamming_distance title: hamming_distance
tags: math,intermediate tags: math,intermediate
firstSeen: 2021-01-17T13:04:06+02:00
lastUpdated: 2021-02-18T14:22:25+02:00
--- ---
Calculates the Hamming distance between two values. Calculates the Hamming distance between two values.

View File

@ -1,6 +1,8 @@
--- ---
title: has_duplicates title: has_duplicates
tags: list,beginner tags: list,beginner
firstSeen: 2018-04-01T11:03:09+03:00
lastUpdated: 2020-11-02T19:28:05+02:00
--- ---
Checks if there are duplicate values in a flat list. Checks if there are duplicate values in a flat list.

View File

@ -1,6 +1,8 @@
--- ---
title: have_same_contents title: have_same_contents
tags: list,intermediate tags: list,intermediate
firstSeen: 2020-03-15T12:54:08+02:00
lastUpdated: 2020-11-02T19:28:05+02:00
--- ---
Checks if two lists contain the same elements regardless of order. Checks if two lists contain the same elements regardless of order.

View File

@ -1,6 +1,8 @@
--- ---
title: head title: head
tags: list,beginner tags: list,beginner
firstSeen: 2019-08-20T14:08:52+03:00
lastUpdated: 2020-09-15T16:13:06+03:00
--- ---
Returns the head of a list. Returns the head of a list.

View File

@ -1,6 +1,8 @@
--- ---
title: hex_to_rgb title: hex_to_rgb
tags: string,math,intermediate tags: string,math,intermediate
firstSeen: 2020-09-13T01:08:21+03:00
lastUpdated: 2020-09-15T16:13:06+03:00
--- ---
Converts a hexadecimal color code to a tuple of integers corresponding to its RGB components. Converts a hexadecimal color code to a tuple of integers corresponding to its RGB components.

View File

@ -1,6 +1,8 @@
--- ---
title: in_range title: in_range
tags: math,beginner tags: math,beginner
firstSeen: 2019-08-20T13:41:40+03:00
lastUpdated: 2020-09-15T16:13:06+03:00
--- ---
Checks if the given number falls within the given range. Checks if the given number falls within the given range.

View File

@ -1,6 +1,8 @@
--- ---
title: includes_all title: includes_all
tags: list,intermediate tags: list,intermediate
firstSeen: 2020-03-15T12:54:08+02:00
lastUpdated: 2020-11-02T19:28:05+02:00
--- ---
Checks if all the elements in `values` are included in `lst`. Checks if all the elements in `values` are included in `lst`.

View File

@ -1,6 +1,8 @@
--- ---
title: includes_any title: includes_any
tags: list,intermediate tags: list,intermediate
firstSeen: 2020-03-15T12:54:08+02:00
lastUpdated: 2020-11-02T19:28:05+02:00
--- ---
Checks if any element in `values` is included in `lst`. Checks if any element in `values` is included in `lst`.

View File

@ -1,6 +1,8 @@
--- ---
title: index_of_all title: index_of_all
tags: list,intermediate tags: list,intermediate
firstSeen: 2020-10-11T13:40:42+03:00
lastUpdated: 2020-10-11T13:45:19+03:00
--- ---
Returns a list of indexes of all the occurrences of an element in a list. Returns a list of indexes of all the occurrences of an element in a list.

View File

@ -1,6 +1,8 @@
--- ---
title: initial title: initial
tags: list,beginner tags: list,beginner
firstSeen: 2019-08-20T14:08:52+03:00
lastUpdated: 2020-11-02T19:28:05+02:00
--- ---
Returns all the elements of a list except the last one. Returns all the elements of a list except the last one.

View File

@ -1,6 +1,8 @@
--- ---
title: initialize_2d_list title: initialize_2d_list
tags: list,intermediate tags: list,intermediate
firstSeen: 2019-10-25T10:11:51+03:00
lastUpdated: 2020-11-02T19:28:05+02:00
--- ---
Initializes a 2D list of given width and height and value. Initializes a 2D list of given width and height and value.

View File

@ -1,6 +1,8 @@
--- ---
title: initialize_list_with_range title: initialize_list_with_range
tags: list,beginner tags: list,beginner
firstSeen: 2019-08-20T15:21:41+03:00
lastUpdated: 2020-11-02T19:28:05+02:00
--- ---
Initializes a list containing the numbers in the specified range where `start` and `end` are inclusive with their common difference `step`. Initializes a list containing the numbers in the specified range where `start` and `end` are inclusive with their common difference `step`.

View File

@ -1,6 +1,8 @@
--- ---
title: initialize_list_with_values title: initialize_list_with_values
tags: list,beginner tags: list,beginner
firstSeen: 2019-08-20T14:12:06+03:00
lastUpdated: 2020-11-02T19:28:05+02:00
--- ---
Initializes and fills a list with the specified value. Initializes and fills a list with the specified value.

View File

@ -1,6 +1,8 @@
--- ---
title: intersection title: intersection
tags: list,beginner tags: list,beginner
firstSeen: 2019-08-20T15:14:26+03:00
lastUpdated: 2020-11-02T19:28:05+02:00
--- ---
Returns a list of elements that exist in both lists. Returns a list of elements that exist in both lists.

View File

@ -1,6 +1,8 @@
--- ---
title: intersection_by title: intersection_by
tags: list,function,intermediate tags: list,function,intermediate
firstSeen: 2019-08-20T15:16:27+03:00
lastUpdated: 2020-11-02T19:28:05+02:00
--- ---
Returns a list of elements that exist in both lists, after applying the provided function to each list element of both. Returns a list of elements that exist in both lists, after applying the provided function to each list element of both.

View File

@ -1,6 +1,8 @@
--- ---
title: invert_dictionary title: invert_dictionary
tags: dictionary,intermediate tags: dictionary,intermediate
firstSeen: 2020-04-07T21:13:32+03:00
lastUpdated: 2020-11-02T19:28:05+02:00
--- ---
Inverts a dictionary with unique hashable values. Inverts a dictionary with unique hashable values.

View File

@ -1,6 +1,8 @@
--- ---
title: is_anagram title: is_anagram
tags: string,intermediate tags: string,intermediate
firstSeen: 2018-10-01T13:17:29+03:00
lastUpdated: 2020-11-02T19:28:05+02:00
--- ---
Checks if a string is an anagram of another string (case-insensitive, ignores spaces, punctuation and special characters). Checks if a string is an anagram of another string (case-insensitive, ignores spaces, punctuation and special characters).

View File

@ -1,6 +1,8 @@
--- ---
title: is_contained_in title: is_contained_in
tags: list,intermediate tags: list,intermediate
firstSeen: 2020-03-16T19:48:15+02:00
lastUpdated: 2021-01-07T23:30:28+02:00
--- ---
Checks if the elements of the first list are contained in the second one regardless of order. Checks if the elements of the first list are contained in the second one regardless of order.

View File

@ -2,6 +2,8 @@
title: is_divisible title: is_divisible
tags: math,beginner tags: math,beginner
unlisted: true unlisted: true
firstSeen: 2019-08-20T14:19:55+03:00
lastUpdated: 2021-01-04T12:47:04+02:00
--- ---
Checks if the first numeric argument is divisible by the second one. Checks if the first numeric argument is divisible by the second one.

View File

@ -2,6 +2,8 @@
title: is_even title: is_even
tags: math,beginner tags: math,beginner
unlisted: true unlisted: true
firstSeen: 2019-08-20T14:21:44+03:00
lastUpdated: 2021-01-04T12:47:04+02:00
--- ---
Checks if the given number is even. Checks if the given number is even.

View File

@ -2,6 +2,8 @@
title: is_odd title: is_odd
tags: math,beginner tags: math,beginner
unlisted: true unlisted: true
firstSeen: 2019-08-20T14:21:44+03:00
lastUpdated: 2021-01-04T12:47:04+02:00
--- ---
Checks if the given number is odd. Checks if the given number is odd.

View File

@ -1,6 +1,8 @@
--- ---
title: is_prime title: is_prime
tags: math,intermediate tags: math,intermediate
firstSeen: 2020-10-03T18:03:32+03:00
lastUpdated: 2020-11-02T19:28:05+02:00
--- ---
Checks if the provided integer is a prime number. Checks if the provided integer is a prime number.

View File

@ -1,6 +1,8 @@
--- ---
title: is_weekday title: is_weekday
tags: date,beginner tags: date,beginner
firstSeen: 2020-10-28T16:20:18+02:00
lastUpdated: 2020-11-02T19:28:05+02:00
--- ---
Checks if the given date is a weekday. Checks if the given date is a weekday.

View File

@ -1,6 +1,8 @@
--- ---
title: is_weekend title: is_weekend
tags: date,beginner tags: date,beginner
firstSeen: 2020-10-28T16:20:27+02:00
lastUpdated: 2020-11-02T19:28:05+02:00
--- ---
Checks if the given date is a weekend. Checks if the given date is a weekend.

View File

@ -1,6 +1,8 @@
--- ---
title: kebab title: kebab
tags: string,regexp,intermediate tags: string,regexp,intermediate
firstSeen: 2019-08-21T08:59:54+03:00
lastUpdated: 2020-11-02T19:28:05+02:00
--- ---
Converts a string to kebab case. Converts a string to kebab case.

View File

@ -1,6 +1,8 @@
--- ---
title: key_in_dict title: key_in_dict
tags: dictionary,beginner tags: dictionary,beginner
firstSeen: 2020-10-16T21:30:49+03:00
lastUpdated: 2020-10-16T21:30:49+03:00
--- ---
Checks if the given key exists in a dictionary. Checks if the given key exists in a dictionary.

View File

@ -1,6 +1,8 @@
--- ---
title: key_of_max title: key_of_max
tags: dictionary,beginner tags: dictionary,beginner
firstSeen: 2021-01-07T23:15:48+02:00
lastUpdated: 2021-01-07T23:15:48+02:00
--- ---
Finds the key of the maximum value in a dictionary. Finds the key of the maximum value in a dictionary.

View File

@ -1,6 +1,8 @@
--- ---
title: key_of_min title: key_of_min
tags: dictionary,beginner tags: dictionary,beginner
firstSeen: 2021-01-07T23:15:48+02:00
lastUpdated: 2021-01-07T23:15:48+02:00
--- ---
Finds the key of the minimum value in a dictionary. Finds the key of the minimum value in a dictionary.

View File

@ -1,6 +1,8 @@
--- ---
title: keys_only title: keys_only
tags: dictionary,list,beginner tags: dictionary,list,beginner
firstSeen: 2018-04-01T23:56:31+03:00
lastUpdated: 2020-11-02T19:28:05+02:00
--- ---
Creates a flat list of all the keys in a flat dictionary. Creates a flat list of all the keys in a flat dictionary.

View File

@ -2,6 +2,8 @@
title: km_to_miles title: km_to_miles
tags: math,beginner tags: math,beginner
unlisted: true unlisted: true
firstSeen: 2020-10-04T00:23:49+03:00
lastUpdated: 2021-01-04T12:47:04+02:00
--- ---
Converts kilometers to miles. Converts kilometers to miles.

View File

@ -1,6 +1,8 @@
--- ---
title: last title: last
tags: list,beginner tags: list,beginner
firstSeen: 2019-08-20T15:11:47+03:00
lastUpdated: 2020-11-02T19:28:05+02:00
--- ---
Returns the last element in a list. Returns the last element in a list.

View File

@ -1,6 +1,8 @@
--- ---
title: lcm title: lcm
tags: math,list,intermediate tags: math,list,intermediate
firstSeen: 2018-01-08T22:30:17+02:00
lastUpdated: 2020-11-02T19:31:15+02:00
--- ---
Returns the least common multiple of a list of numbers. Returns the least common multiple of a list of numbers.

View File

@ -1,6 +1,8 @@
--- ---
title: longest_item title: longest_item
tags: list,string,intermediate tags: list,string,intermediate
firstSeen: 2019-08-20T15:27:49+03:00
lastUpdated: 2020-11-02T19:28:05+02:00
--- ---
Takes any number of iterable objects or objects with a length property and returns the longest one. Takes any number of iterable objects or objects with a length property and returns the longest one.

View File

@ -1,6 +1,8 @@
--- ---
title: map_dictionary title: map_dictionary
tags: list,dictionary,intermediate tags: list,dictionary,intermediate
firstSeen: 2020-04-07T19:53:48+03:00
lastUpdated: 2020-11-02T19:28:27+02:00
--- ---
Maps the values of a list to a dictionary using a function, where the key-value pairs consist of the original value as the key and the result of the function as the value. Maps the values of a list to a dictionary using a function, where the key-value pairs consist of the original value as the key and the result of the function as the value.

Some files were not shown because too many files have changed in this diff Show More