Update frontmatter data
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Add days to date
|
||||
tags: date
|
||||
type: snippet
|
||||
tags: [date]
|
||||
cover: orange-flower
|
||||
firstSeen: 2020-10-28T16:19:04+02:00
|
||||
lastUpdated: 2020-10-28T16:19:04+02:00
|
||||
dateModified: 2020-10-28T16:19:04+02:00
|
||||
---
|
||||
|
||||
Calculates the date of `n` days from the given date.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Check if list elements are identical
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: fallen-leaves
|
||||
firstSeen: 2019-08-20T11:39:18+03:00
|
||||
lastUpdated: 2020-10-11T13:40:42+03:00
|
||||
dateModified: 2020-10-11T13:40:42+03:00
|
||||
---
|
||||
|
||||
Checks if all elements in a list are equal.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Check if list has no duplicates
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: touch-flower
|
||||
firstSeen: 2018-04-01T11:03:09+03:00
|
||||
lastUpdated: 2021-01-07T23:30:28+02:00
|
||||
dateModified: 2021-01-07T23:30:28+02:00
|
||||
---
|
||||
|
||||
Checks if all the values in a list are unique.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Arithmetic progression
|
||||
tags: math
|
||||
type: snippet
|
||||
tags: [math]
|
||||
cover: number-2
|
||||
firstSeen: 2020-07-28T13:57:33+03:00
|
||||
lastUpdated: 2020-11-02T19:27:07+02:00
|
||||
dateModified: 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.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Mapped list average
|
||||
tags: math,list
|
||||
type: snippet
|
||||
tags: [math,list]
|
||||
cover: flower-vase
|
||||
firstSeen: 2019-08-20T11:55:10+03:00
|
||||
lastUpdated: 2020-11-02T19:27:07+02:00
|
||||
dateModified: 2020-11-02T19:27:07+02:00
|
||||
---
|
||||
|
||||
Calculates the average of a list, after mapping each element to a value using the provided function.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Average
|
||||
tags: math,list
|
||||
type: snippet
|
||||
tags: [math,list]
|
||||
cover: digital-nomad-15
|
||||
firstSeen: 2018-01-27T07:16:41+02:00
|
||||
lastUpdated: 2020-11-02T19:27:07+02:00
|
||||
dateModified: 2020-11-02T19:27:07+02:00
|
||||
---
|
||||
|
||||
Calculates the average of two or more numbers.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Bifurcate list based on function
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: two-flower-vases
|
||||
firstSeen: 2019-08-20T12:41:21+03:00
|
||||
lastUpdated: 2020-11-02T19:27:07+02:00
|
||||
dateModified: 2020-11-02T19:27:07+02:00
|
||||
---
|
||||
|
||||
Splits values into two groups, based on the result of the given filtering function.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Bifurcate list based on values
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: mug-flower-book
|
||||
firstSeen: 2019-08-20T12:37:06+03:00
|
||||
lastUpdated: 2020-11-02T19:27:07+02:00
|
||||
dateModified: 2020-11-02T19:27:07+02:00
|
||||
---
|
||||
|
||||
Splits values into two groups, based on the result of the given `filter` list.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Binomial coefficient
|
||||
tags: math
|
||||
type: snippet
|
||||
tags: [math]
|
||||
cover: digital-nomad-5
|
||||
firstSeen: 2020-10-04T11:56:31+03:00
|
||||
lastUpdated: 2020-11-02T19:27:07+02:00
|
||||
dateModified: 2020-11-02T19:27:07+02:00
|
||||
---
|
||||
|
||||
Calculates the number of ways to choose `k` items from `n` items without repetition and without order.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Byte size of string
|
||||
tags: string
|
||||
type: snippet
|
||||
tags: [string]
|
||||
cover: river-house-lights
|
||||
firstSeen: 2018-02-01T10:19:59+02:00
|
||||
lastUpdated: 2020-11-02T19:27:07+02:00
|
||||
dateModified: 2020-11-02T19:27:07+02:00
|
||||
---
|
||||
|
||||
Returns the length of a string in bytes.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Camelcase string
|
||||
tags: string,regexp
|
||||
type: snippet
|
||||
tags: [string,regexp]
|
||||
cover: digital-nomad-9
|
||||
firstSeen: 2019-08-21T08:59:54+03:00
|
||||
lastUpdated: 2020-11-02T19:27:07+02:00
|
||||
dateModified: 2020-11-02T19:27:07+02:00
|
||||
---
|
||||
|
||||
Converts a string to camelcase.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Capitalize every word
|
||||
tags: string
|
||||
type: snippet
|
||||
tags: [string]
|
||||
cover: trippy-chemicals
|
||||
firstSeen: 2018-02-01T10:19:59+02:00
|
||||
lastUpdated: 2020-11-02T19:27:07+02:00
|
||||
dateModified: 2020-11-02T19:27:07+02:00
|
||||
---
|
||||
|
||||
Capitalizes the first letter of every word in a string.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Capitalize string
|
||||
tags: string
|
||||
type: snippet
|
||||
tags: [string]
|
||||
cover: palm-tree-house
|
||||
firstSeen: 2018-02-01T10:19:59+02:00
|
||||
lastUpdated: 2020-11-02T19:27:07+02:00
|
||||
dateModified: 2020-11-02T19:27:07+02:00
|
||||
---
|
||||
|
||||
Capitalizes the first letter of a string.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Cast to list
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: colorful-pots
|
||||
firstSeen: 2019-08-20T12:47:43+03:00
|
||||
lastUpdated: 2020-11-02T19:27:07+02:00
|
||||
dateModified: 2020-11-02T19:27:07+02:00
|
||||
---
|
||||
|
||||
Casts the provided value as a list if it's not one.
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
---
|
||||
title: Celsius to Fahrenheit
|
||||
tags: math
|
||||
type: snippet
|
||||
tags: [math]
|
||||
unlisted: true
|
||||
cover: last-light
|
||||
firstSeen: 2020-04-05T12:29:03+03:00
|
||||
lastUpdated: 2021-01-04T12:47:04+02:00
|
||||
dateModified: 2021-01-04T12:47:04+02:00
|
||||
---
|
||||
|
||||
Converts Celsius to Fahrenheit.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Check property
|
||||
tags: function
|
||||
type: snippet
|
||||
tags: [function]
|
||||
cover: lake-trees
|
||||
firstSeen: 2020-01-02T16:49:25+02:00
|
||||
lastUpdated: 2020-11-02T19:27:07+02:00
|
||||
dateModified: 2020-11-02T19:27:07+02:00
|
||||
---
|
||||
|
||||
Creates a function that will invoke a predicate function for the specified property on a given dictionary.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Split list into n chunks
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: succulent-10
|
||||
firstSeen: 2020-10-12T22:11:30+03:00
|
||||
lastUpdated: 2020-10-23T05:35:06+03:00
|
||||
dateModified: 2020-10-23T05:35:06+03:00
|
||||
---
|
||||
|
||||
Chunks a list into `n` smaller lists.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Split list into chunks
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: red-berries
|
||||
firstSeen: 2018-01-09T06:39:42+02:00
|
||||
lastUpdated: 2020-11-02T19:27:07+02:00
|
||||
dateModified: 2020-11-02T19:27:07+02:00
|
||||
---
|
||||
|
||||
Chunks a list into smaller lists of a specified size.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Clamp number
|
||||
tags: math
|
||||
type: snippet
|
||||
tags: [math]
|
||||
cover: highlands
|
||||
firstSeen: 2019-08-20T12:50:38+03:00
|
||||
lastUpdated: 2020-11-02T19:27:07+02:00
|
||||
dateModified: 2020-11-02T19:27:07+02:00
|
||||
---
|
||||
|
||||
Clamps `num` within the inclusive range specified by the boundary values.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Invert dictionary
|
||||
tags: dictionary
|
||||
type: snippet
|
||||
tags: [dictionary]
|
||||
cover: working-bee
|
||||
firstSeen: 2020-04-07T21:15:06+03:00
|
||||
lastUpdated: 2020-11-02T19:27:07+02:00
|
||||
dateModified: 2020-11-02T19:27:07+02:00
|
||||
---
|
||||
|
||||
Inverts a dictionary with non-unique hashable values.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Combine dictionary values
|
||||
tags: dictionary
|
||||
type: snippet
|
||||
tags: [dictionary]
|
||||
cover: fruit-feast
|
||||
firstSeen: 2021-03-07T12:30:47+02:00
|
||||
lastUpdated: 2021-04-04T14:32:35+03:00
|
||||
dateModified: 2021-04-04T14:32:35+03:00
|
||||
---
|
||||
|
||||
Combines two or more dictionaries, creating a list of values for each key.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Compact list
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: new-plant
|
||||
firstSeen: 2018-01-19T12:17:06+02:00
|
||||
lastUpdated: 2020-11-02T19:27:07+02:00
|
||||
dateModified: 2020-11-02T19:27:07+02:00
|
||||
---
|
||||
|
||||
Removes falsy values from a list.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Reverse compose functions
|
||||
tags: function
|
||||
type: snippet
|
||||
tags: [function]
|
||||
cover: lavender-shelf
|
||||
firstSeen: 2020-01-02T15:51:26+02:00
|
||||
lastUpdated: 2020-11-02T19:27:07+02:00
|
||||
dateModified: 2020-11-02T19:27:07+02:00
|
||||
---
|
||||
|
||||
Performs left-to-right function composition.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Compose functions
|
||||
tags: function
|
||||
type: snippet
|
||||
tags: [function]
|
||||
cover: tram-car-2
|
||||
firstSeen: 2020-01-02T15:51:20+02:00
|
||||
lastUpdated: 2020-11-02T19:27:07+02:00
|
||||
dateModified: 2020-11-02T19:27:07+02:00
|
||||
---
|
||||
|
||||
Performs right-to-left function composition.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Count grouped elements
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: rabbit-call
|
||||
firstSeen: 2018-02-07T10:33:47+02:00
|
||||
lastUpdated: 2020-11-02T19:27:07+02:00
|
||||
dateModified: 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.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Count occurrences
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: pineapple-at-work
|
||||
firstSeen: 2021-01-10T00:00:36+02:00
|
||||
lastUpdated: 2021-01-10T00:00:36+02:00
|
||||
dateModified: 2021-01-10T00:00:36+02:00
|
||||
---
|
||||
|
||||
Counts the occurrences of a value in a list.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Partial sum list
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: digital-nomad-16
|
||||
firstSeen: 2021-01-13T23:30:41+02:00
|
||||
lastUpdated: 2021-01-13T23:30:41+02:00
|
||||
dateModified: 2021-01-13T23:30:41+02:00
|
||||
---
|
||||
|
||||
Creates a list of partial sums.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Curry function
|
||||
tags: function
|
||||
type: snippet
|
||||
tags: [function]
|
||||
cover: leaves-read
|
||||
firstSeen: 2020-01-02T16:14:50+02:00
|
||||
lastUpdated: 2020-11-02T19:27:07+02:00
|
||||
dateModified: 2020-11-02T19:27:07+02:00
|
||||
---
|
||||
|
||||
Curries a function.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Date range
|
||||
tags: date
|
||||
type: snippet
|
||||
tags: [date]
|
||||
cover: maple-leaf-palette
|
||||
firstSeen: 2020-10-28T16:19:14+02:00
|
||||
lastUpdated: 2021-01-07T23:30:28+02:00
|
||||
dateModified: 2021-01-07T23:30:28+02:00
|
||||
---
|
||||
|
||||
Creates a list of dates between `start` (inclusive) and `end` (not inclusive).
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Days ago
|
||||
tags: date
|
||||
type: snippet
|
||||
tags: [date]
|
||||
cover: cup-of-orange
|
||||
firstSeen: 2020-10-28T16:19:30+02:00
|
||||
lastUpdated: 2020-10-28T16:19:30+02:00
|
||||
dateModified: 2020-10-28T16:19:30+02:00
|
||||
---
|
||||
|
||||
Calculates the date of `n` days ago from today.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Date difference in days
|
||||
tags: date
|
||||
type: snippet
|
||||
tags: [date]
|
||||
cover: succulent-9
|
||||
firstSeen: 2020-10-28T16:19:39+02:00
|
||||
lastUpdated: 2020-10-28T16:19:39+02:00
|
||||
dateModified: 2020-10-28T16:19:39+02:00
|
||||
---
|
||||
|
||||
Calculates the day difference between two dates.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Days from now
|
||||
tags: date
|
||||
type: snippet
|
||||
tags: [date]
|
||||
cover: clutter
|
||||
firstSeen: 2020-10-28T16:19:51+02:00
|
||||
lastUpdated: 2020-10-28T16:19:51+02:00
|
||||
dateModified: 2020-10-28T16:19:51+02:00
|
||||
---
|
||||
|
||||
Calculates the date of `n` days from today.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Decapitalize string
|
||||
tags: string
|
||||
type: snippet
|
||||
tags: [string]
|
||||
cover: succulent-crowd
|
||||
firstSeen: 2018-02-01T10:19:59+02:00
|
||||
lastUpdated: 2020-11-02T19:27:53+02:00
|
||||
dateModified: 2020-11-02T19:27:53+02:00
|
||||
---
|
||||
|
||||
Decapitalizes the first letter of a string.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Deep flatten list
|
||||
tags: list,recursion
|
||||
type: snippet
|
||||
tags: [list,recursion]
|
||||
cover: mask-quiet
|
||||
firstSeen: 2018-01-16T16:54:14+02:00
|
||||
lastUpdated: 2020-12-29T19:53:45+02:00
|
||||
dateModified: 2020-12-29T19:53:45+02:00
|
||||
---
|
||||
|
||||
Deep flattens a list.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Degrees to radians
|
||||
tags: math
|
||||
type: snippet
|
||||
tags: [math]
|
||||
cover: digital-nomad-6
|
||||
firstSeen: 2019-10-15T14:31:11+03:00
|
||||
lastUpdated: 2020-11-02T19:27:53+02:00
|
||||
dateModified: 2020-11-02T19:27:53+02:00
|
||||
---
|
||||
|
||||
Converts an angle from degrees to radians.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Delayed function execution
|
||||
tags: function
|
||||
type: snippet
|
||||
tags: [function]
|
||||
cover: succulent-10
|
||||
firstSeen: 2020-01-02T16:24:51+02:00
|
||||
lastUpdated: 2020-11-02T19:27:53+02:00
|
||||
dateModified: 2020-11-02T19:27:53+02:00
|
||||
---
|
||||
|
||||
Invokes the provided function after `ms` milliseconds.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Dictionary to list
|
||||
tags: dictionary,list
|
||||
type: snippet
|
||||
tags: [dictionary,list]
|
||||
cover: new-york
|
||||
firstSeen: 2020-10-16T21:24:14+03:00
|
||||
lastUpdated: 2020-11-02T19:27:53+02:00
|
||||
dateModified: 2020-11-02T19:27:53+02:00
|
||||
---
|
||||
|
||||
Converts a dictionary to a list of tuples.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: List difference based on function
|
||||
tags: list,function
|
||||
type: snippet
|
||||
tags: [list,function]
|
||||
cover: coconuts
|
||||
firstSeen: 2018-02-08T15:59:27+02:00
|
||||
lastUpdated: 2020-11-02T19:27:53+02:00
|
||||
dateModified: 2020-11-02T19:27:53+02:00
|
||||
---
|
||||
|
||||
Returns the difference between two lists, after applying the provided function to each list element of both.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: List difference
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: frog-blue-flower
|
||||
firstSeen: 2018-01-20T16:16:44+02:00
|
||||
lastUpdated: 2020-11-02T19:27:53+02:00
|
||||
dateModified: 2020-11-02T19:27:53+02:00
|
||||
---
|
||||
|
||||
Calculates the difference between two iterables, without filtering duplicate values.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Digitize number
|
||||
tags: math,list
|
||||
type: snippet
|
||||
tags: [math,list]
|
||||
cover: laptop-with-code
|
||||
firstSeen: 2019-08-20T13:00:27+03:00
|
||||
lastUpdated: 2020-09-15T16:13:06+03:00
|
||||
dateModified: 2020-09-15T16:13:06+03:00
|
||||
---
|
||||
|
||||
Converts a number to a list of digits.
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
---
|
||||
title: Drop list elements from the right
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
author: chalarangelo
|
||||
cover: digital-nomad-7
|
||||
firstSeen: 2020-03-10T21:59:41+02:00
|
||||
lastUpdated: 2020-11-02T19:27:53+02:00
|
||||
dateModified: 2020-11-02T19:27:53+02:00
|
||||
---
|
||||
|
||||
Returns a list with `n` elements removed from the right.
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
---
|
||||
title: Drop list elements from the left
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
author: chalarangelo
|
||||
cover: pink-flower
|
||||
firstSeen: 2020-03-10T21:59:41+02:00
|
||||
lastUpdated: 2020-11-02T19:27:53+02:00
|
||||
dateModified: 2020-11-02T19:27:53+02:00
|
||||
---
|
||||
|
||||
Returns a list with `n` elements removed from the left.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Every nth element in list
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: cherry-trees
|
||||
firstSeen: 2019-08-20T13:10:12+03:00
|
||||
lastUpdated: 2020-11-02T19:27:53+02:00
|
||||
dateModified: 2020-11-02T19:27:53+02:00
|
||||
---
|
||||
|
||||
Returns every `nth` element in a list.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Test if every list element is truthy
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: walking
|
||||
firstSeen: 2019-08-20T11:34:24+03:00
|
||||
lastUpdated: 2020-11-02T19:27:53+02:00
|
||||
dateModified: 2020-11-02T19:27:53+02:00
|
||||
---
|
||||
|
||||
Checks if the provided function returns `True` for every element in the list.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Factorial
|
||||
tags: math,recursion
|
||||
type: snippet
|
||||
tags: [math,recursion]
|
||||
cover: succulent-11
|
||||
firstSeen: 2018-01-27T07:29:56+02:00
|
||||
lastUpdated: 2020-09-15T16:13:06+03:00
|
||||
dateModified: 2020-09-15T16:13:06+03:00
|
||||
---
|
||||
|
||||
Calculates the factorial of a number.
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
---
|
||||
title: Fahrenheit to Celsius
|
||||
tags: math
|
||||
type: snippet
|
||||
tags: [math]
|
||||
unlisted: true
|
||||
cover: last-light
|
||||
firstSeen: 2020-04-05T12:29:03+03:00
|
||||
lastUpdated: 2021-01-04T12:47:04+02:00
|
||||
dateModified: 2021-01-04T12:47:04+02:00
|
||||
---
|
||||
|
||||
Converts Fahrenheit to Celsius.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Fibonacci
|
||||
tags: math,list
|
||||
type: snippet
|
||||
tags: [math,list]
|
||||
cover: san-francisco-skyline
|
||||
firstSeen: 2018-10-06T06:06:33+03:00
|
||||
lastUpdated: 2020-11-02T19:27:53+02:00
|
||||
dateModified: 2020-11-02T19:27:53+02:00
|
||||
---
|
||||
|
||||
Generates a list, containing the Fibonacci sequence, up until the nth term.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Filter non-unique list values
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: cobbled-street
|
||||
firstSeen: 2019-08-20T13:13:51+03:00
|
||||
lastUpdated: 2020-11-02T19:27:53+02:00
|
||||
dateModified: 2020-11-02T19:27:53+02:00
|
||||
---
|
||||
|
||||
Creates a list with the non-unique values filtered out.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Filter unique list values
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: feathers
|
||||
firstSeen: 2019-10-02T20:06:24+03:00
|
||||
lastUpdated: 2020-11-02T19:27:53+02:00
|
||||
dateModified: 2020-11-02T19:27:53+02:00
|
||||
---
|
||||
|
||||
Creates a list with the unique values filtered out.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Find all matching indexes
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: tree-roots
|
||||
firstSeen: 2020-10-11T13:45:19+03:00
|
||||
lastUpdated: 2020-11-02T19:27:53+02:00
|
||||
dateModified: 2020-11-02T19:27:53+02:00
|
||||
---
|
||||
|
||||
Finds the indexes of all elements in the given list that satisfy the provided testing function.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Find matching index
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: book-chair
|
||||
firstSeen: 2020-03-10T22:38:48+02:00
|
||||
lastUpdated: 2020-11-02T19:27:53+02:00
|
||||
dateModified: 2020-11-02T19:27:53+02:00
|
||||
---
|
||||
|
||||
Finds the index of the first element in the given list that satisfies the provided testing function.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Find key of value
|
||||
tags: dictionary
|
||||
type: snippet
|
||||
tags: [dictionary]
|
||||
cover: blue-red-mountain
|
||||
firstSeen: 2020-04-16T19:13:20+03:00
|
||||
lastUpdated: 2020-11-02T19:27:53+02:00
|
||||
dateModified: 2020-11-02T19:27:53+02:00
|
||||
---
|
||||
|
||||
Finds the first key in the provided dictionary that has the given value.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Find keys with value
|
||||
tags: dictionary
|
||||
type: snippet
|
||||
tags: [dictionary]
|
||||
cover: laptop-plants-2
|
||||
firstSeen: 2020-04-16T19:17:13+03:00
|
||||
lastUpdated: 2020-11-02T19:27:53+02:00
|
||||
dateModified: 2020-11-02T19:27:53+02:00
|
||||
---
|
||||
|
||||
Finds all keys in the provided dictionary that have the given value.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Find last matching index
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: succulent-8
|
||||
firstSeen: 2020-03-10T22:38:48+02:00
|
||||
lastUpdated: 2020-11-02T19:27:53+02:00
|
||||
dateModified: 2020-11-02T19:27:53+02:00
|
||||
---
|
||||
|
||||
Finds the index of the last element in the given list that satisfies the provided testing function.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Find last matching value
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: tropical-waterfall
|
||||
firstSeen: 2020-03-10T22:38:48+02:00
|
||||
lastUpdated: 2020-11-02T19:27:53+02:00
|
||||
dateModified: 2020-11-02T19:27:53+02:00
|
||||
---
|
||||
|
||||
Finds the value of the last element in the given list that satisfies the provided testing function.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Find parity outliers
|
||||
tags: list,math
|
||||
type: snippet
|
||||
tags: [list,math]
|
||||
cover: beach-pineapple
|
||||
firstSeen: 2020-01-08T18:54:35+02:00
|
||||
lastUpdated: 2020-11-02T19:27:53+02:00
|
||||
dateModified: 2020-11-02T19:27:53+02:00
|
||||
---
|
||||
|
||||
Finds the items that are parity outliers in a given list.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Find matching value
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: duck-plants
|
||||
firstSeen: 2020-03-10T22:38:48+02:00
|
||||
lastUpdated: 2020-11-02T19:27:53+02:00
|
||||
dateModified: 2020-11-02T19:27:53+02:00
|
||||
---
|
||||
|
||||
Finds the value of the first element in the given list that satisfies the provided testing function.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Flatten list
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: jars-on-shelf
|
||||
firstSeen: 2019-09-19T15:46:10+03:00
|
||||
lastUpdated: 2020-11-02T19:27:53+02:00
|
||||
dateModified: 2020-11-02T19:27:53+02:00
|
||||
---
|
||||
|
||||
Flattens a list of lists once.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Execute function for each list element in reverse
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: bridge-drop
|
||||
firstSeen: 2020-03-15T12:54:08+02:00
|
||||
lastUpdated: 2020-09-15T16:13:06+03:00
|
||||
dateModified: 2020-09-15T16:13:06+03:00
|
||||
---
|
||||
|
||||
Executes the provided function once for each list element, starting from the list's last element.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Execute function for each list element
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: green-plant
|
||||
firstSeen: 2020-03-15T12:54:08+02:00
|
||||
lastUpdated: 2020-09-15T16:13:06+03:00
|
||||
dateModified: 2020-09-15T16:13:06+03:00
|
||||
---
|
||||
|
||||
Executes the provided function once for each list element.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Value frequencies
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: succulent-6
|
||||
firstSeen: 2020-03-15T12:54:08+02:00
|
||||
lastUpdated: 2020-11-02T19:27:53+02:00
|
||||
dateModified: 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.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Date from ISO format
|
||||
tags: date
|
||||
type: snippet
|
||||
tags: [date]
|
||||
cover: purple-leaves
|
||||
firstSeen: 2020-10-28T16:20:04+02:00
|
||||
lastUpdated: 2021-01-07T23:30:28+02:00
|
||||
dateModified: 2021-01-07T23:30:28+02:00
|
||||
---
|
||||
|
||||
Converts a date from its ISO-8601 representation.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Greatest common divisor
|
||||
tags: math
|
||||
type: snippet
|
||||
tags: [math]
|
||||
cover: digital-nomad-12
|
||||
firstSeen: 2018-01-08T16:26:35+02:00
|
||||
lastUpdated: 2020-09-15T16:13:06+03:00
|
||||
dateModified: 2020-09-15T16:13:06+03:00
|
||||
---
|
||||
|
||||
Calculates the greatest common divisor of a list of numbers.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Geometric progression
|
||||
tags: math,list
|
||||
type: snippet
|
||||
tags: [math,list]
|
||||
cover: kettle-laptop
|
||||
firstSeen: 2020-10-04T12:19:28+03:00
|
||||
lastUpdated: 2020-11-02T19:28:05+02:00
|
||||
dateModified: 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`.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Get nested value
|
||||
tags: dictionary,list
|
||||
type: snippet
|
||||
tags: [dictionary,list]
|
||||
cover: digital-nomad-2
|
||||
firstSeen: 2020-10-28T12:21:39+02:00
|
||||
lastUpdated: 2020-10-28T12:21:39+02:00
|
||||
dateModified: 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.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Group list elements
|
||||
tags: list,dictionary
|
||||
type: snippet
|
||||
tags: [list,dictionary]
|
||||
cover: body-of-water
|
||||
firstSeen: 2019-08-20T13:29:00+03:00
|
||||
lastUpdated: 2020-11-02T19:28:05+02:00
|
||||
dateModified: 2020-11-02T19:28:05+02:00
|
||||
---
|
||||
|
||||
Groups the elements of a list based on the given function.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Hamming distance
|
||||
tags: math
|
||||
type: snippet
|
||||
tags: [math]
|
||||
cover: tulips-and-reeds
|
||||
firstSeen: 2021-01-17T13:04:06+02:00
|
||||
lastUpdated: 2021-02-18T14:22:25+02:00
|
||||
dateModified: 2021-02-18T14:22:25+02:00
|
||||
---
|
||||
|
||||
Calculates the Hamming distance between two values.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Check for duplicates in list
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: jars-on-shelf-2
|
||||
firstSeen: 2018-04-01T11:03:09+03:00
|
||||
lastUpdated: 2020-11-02T19:28:05+02:00
|
||||
dateModified: 2020-11-02T19:28:05+02:00
|
||||
---
|
||||
|
||||
Checks if there are duplicate values in a flat list.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Check lists have same contents
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: racoon
|
||||
firstSeen: 2020-03-15T12:54:08+02:00
|
||||
lastUpdated: 2020-11-02T19:28:05+02:00
|
||||
dateModified: 2020-11-02T19:28:05+02:00
|
||||
---
|
||||
|
||||
Checks if two lists contain the same elements regardless of order.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: List head
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: purple-laptop
|
||||
firstSeen: 2019-08-20T14:08:52+03:00
|
||||
lastUpdated: 2020-09-15T16:13:06+03:00
|
||||
dateModified: 2020-09-15T16:13:06+03:00
|
||||
---
|
||||
|
||||
Returns the head of a list.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Hex to RGB
|
||||
tags: string,math
|
||||
type: snippet
|
||||
tags: [string,math]
|
||||
cover: sleepy-cat
|
||||
firstSeen: 2020-09-13T01:08:21+03:00
|
||||
lastUpdated: 2020-09-15T16:13:06+03:00
|
||||
dateModified: 2020-09-15T16:13:06+03:00
|
||||
---
|
||||
|
||||
Converts a hexadecimal color code to a tuple of integers corresponding to its RGB components.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Number in range
|
||||
tags: math
|
||||
type: snippet
|
||||
tags: [math]
|
||||
cover: pineapple-on-green
|
||||
firstSeen: 2019-08-20T13:41:40+03:00
|
||||
lastUpdated: 2020-09-15T16:13:06+03:00
|
||||
dateModified: 2020-09-15T16:13:06+03:00
|
||||
---
|
||||
|
||||
Checks if the given number falls within the given range.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: List includes all values
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: switzerland-night
|
||||
firstSeen: 2020-03-15T12:54:08+02:00
|
||||
lastUpdated: 2020-11-02T19:28:05+02:00
|
||||
dateModified: 2020-11-02T19:28:05+02:00
|
||||
---
|
||||
|
||||
Checks if all the elements in `values` are included in `lst`.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: List includes any values
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: forest-balcony
|
||||
firstSeen: 2020-03-15T12:54:08+02:00
|
||||
lastUpdated: 2020-11-02T19:28:05+02:00
|
||||
dateModified: 2020-11-02T19:28:05+02:00
|
||||
---
|
||||
|
||||
Checks if any element in `values` is included in `lst`.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: All indexes of value
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: purple-flower-bunch
|
||||
firstSeen: 2020-10-11T13:40:42+03:00
|
||||
lastUpdated: 2020-10-11T13:45:19+03:00
|
||||
dateModified: 2020-10-11T13:45:19+03:00
|
||||
---
|
||||
|
||||
Returns a list of indexes of all the occurrences of an element in a list.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: List without last element
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: pop-of-green
|
||||
firstSeen: 2019-08-20T14:08:52+03:00
|
||||
lastUpdated: 2020-11-02T19:28:05+02:00
|
||||
dateModified: 2020-11-02T19:28:05+02:00
|
||||
---
|
||||
|
||||
Returns all the elements of a list except the last one.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Initialize 2D list
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: succulent-7
|
||||
firstSeen: 2019-10-25T10:11:51+03:00
|
||||
lastUpdated: 2020-11-02T19:28:05+02:00
|
||||
dateModified: 2020-11-02T19:28:05+02:00
|
||||
---
|
||||
|
||||
Initializes a 2D list of given width and height and value.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Initialize list with range
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: succulent-3
|
||||
firstSeen: 2019-08-20T15:21:41+03:00
|
||||
lastUpdated: 2020-11-02T19:28:05+02:00
|
||||
dateModified: 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`.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Initialize list with values
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: dog-waiting
|
||||
firstSeen: 2019-08-20T14:12:06+03:00
|
||||
lastUpdated: 2020-11-02T19:28:05+02:00
|
||||
dateModified: 2020-11-02T19:28:05+02:00
|
||||
---
|
||||
|
||||
Initializes and fills a list with the specified value.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: List intersection based on function
|
||||
tags: list,function
|
||||
type: snippet
|
||||
tags: [list,function]
|
||||
cover: duck-plants
|
||||
firstSeen: 2019-08-20T15:16:27+03:00
|
||||
lastUpdated: 2020-11-02T19:28:05+02:00
|
||||
dateModified: 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.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: List intersection
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: wooden-bowl
|
||||
firstSeen: 2019-08-20T15:14:26+03:00
|
||||
lastUpdated: 2020-11-02T19:28:05+02:00
|
||||
dateModified: 2020-11-02T19:28:05+02:00
|
||||
---
|
||||
|
||||
Returns a list of elements that exist in both lists.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Invert dictionary
|
||||
tags: dictionary
|
||||
type: snippet
|
||||
tags: [dictionary]
|
||||
cover: rustic-cup
|
||||
firstSeen: 2020-04-07T21:13:32+03:00
|
||||
lastUpdated: 2020-11-02T19:28:05+02:00
|
||||
dateModified: 2020-11-02T19:28:05+02:00
|
||||
---
|
||||
|
||||
Inverts a dictionary with unique hashable values.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: String is anagram
|
||||
tags: string
|
||||
type: snippet
|
||||
tags: [string]
|
||||
cover: digital-nomad-8
|
||||
firstSeen: 2018-10-01T13:17:29+03:00
|
||||
lastUpdated: 2020-11-02T19:28:05+02:00
|
||||
dateModified: 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).
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: List is contained in other list
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: tropical-bike
|
||||
firstSeen: 2020-03-16T19:48:15+02:00
|
||||
lastUpdated: 2021-01-07T23:30:28+02:00
|
||||
dateModified: 2021-01-07T23:30:28+02:00
|
||||
---
|
||||
|
||||
Checks if the elements of the first list are contained in the second one regardless of order.
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
---
|
||||
title: Number is divisible
|
||||
tags: math
|
||||
type: snippet
|
||||
tags: [math]
|
||||
unlisted: true
|
||||
cover: interior-9
|
||||
firstSeen: 2019-08-20T14:19:55+03:00
|
||||
lastUpdated: 2021-01-04T12:47:04+02:00
|
||||
dateModified: 2021-01-04T12:47:04+02:00
|
||||
---
|
||||
|
||||
Checks if the first numeric argument is divisible by the second one.
|
||||
|
||||
@ -1,9 +1,10 @@
|
||||
---
|
||||
title: Collection is empty
|
||||
tags: list,dictionary,string
|
||||
type: snippet
|
||||
tags: [list,dictionary,string]
|
||||
author: chalarangelo
|
||||
cover: salad-1
|
||||
firstSeen: 2023-01-12T05:00:00-04:00
|
||||
dateModified: 2023-01-12T05:00:00-04:00
|
||||
---
|
||||
|
||||
Checks if the a value is an empty sequence or collection.
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
---
|
||||
title: Number is even
|
||||
tags: math
|
||||
type: snippet
|
||||
tags: [math]
|
||||
unlisted: true
|
||||
cover: interior-3
|
||||
firstSeen: 2019-08-20T14:21:44+03:00
|
||||
lastUpdated: 2021-01-04T12:47:04+02:00
|
||||
dateModified: 2021-01-04T12:47:04+02:00
|
||||
---
|
||||
|
||||
Checks if the given number is even.
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
---
|
||||
title: Number is odd
|
||||
tags: math
|
||||
type: snippet
|
||||
tags: [math]
|
||||
unlisted: true
|
||||
cover: interior-6
|
||||
firstSeen: 2019-08-20T14:21:44+03:00
|
||||
lastUpdated: 2021-01-04T12:47:04+02:00
|
||||
dateModified: 2021-01-04T12:47:04+02:00
|
||||
---
|
||||
|
||||
Checks if the given number is odd.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Number is prime
|
||||
tags: math
|
||||
type: snippet
|
||||
tags: [math]
|
||||
cover: carrots
|
||||
firstSeen: 2020-10-03T18:03:32+03:00
|
||||
lastUpdated: 2020-11-02T19:28:05+02:00
|
||||
dateModified: 2020-11-02T19:28:05+02:00
|
||||
---
|
||||
|
||||
Checks if the provided integer is a prime number.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Date is weekday
|
||||
tags: date
|
||||
type: snippet
|
||||
tags: [date]
|
||||
cover: succulent-4
|
||||
firstSeen: 2020-10-28T16:20:18+02:00
|
||||
lastUpdated: 2020-11-02T19:28:05+02:00
|
||||
dateModified: 2020-11-02T19:28:05+02:00
|
||||
---
|
||||
|
||||
Checks if the given date is a weekday.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Date is weekend
|
||||
tags: date
|
||||
type: snippet
|
||||
tags: [date]
|
||||
cover: two-lighthouses
|
||||
firstSeen: 2020-10-28T16:20:27+02:00
|
||||
lastUpdated: 2020-11-02T19:28:05+02:00
|
||||
dateModified: 2020-11-02T19:28:05+02:00
|
||||
---
|
||||
|
||||
Checks if the given date is a weekend.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Kebabcase string
|
||||
tags: string,regexp
|
||||
type: snippet
|
||||
tags: [string,regexp]
|
||||
cover: mask-quiet
|
||||
firstSeen: 2019-08-21T08:59:54+03:00
|
||||
lastUpdated: 2020-11-02T19:28:05+02:00
|
||||
dateModified: 2020-11-02T19:28:05+02:00
|
||||
---
|
||||
|
||||
Converts a string to kebab case.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Key in dictionary
|
||||
tags: dictionary
|
||||
type: snippet
|
||||
tags: [dictionary]
|
||||
cover: rocky-mountains
|
||||
firstSeen: 2020-10-16T21:30:49+03:00
|
||||
lastUpdated: 2020-10-16T21:30:49+03:00
|
||||
dateModified: 2020-10-16T21:30:49+03:00
|
||||
---
|
||||
|
||||
Checks if the given key exists in a dictionary.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Key of max value
|
||||
tags: dictionary
|
||||
type: snippet
|
||||
tags: [dictionary]
|
||||
cover: succulent-7
|
||||
firstSeen: 2021-01-07T23:15:48+02:00
|
||||
lastUpdated: 2021-01-07T23:15:48+02:00
|
||||
dateModified: 2021-01-07T23:15:48+02:00
|
||||
---
|
||||
|
||||
Finds the key of the maximum value in a dictionary.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Key of min value
|
||||
tags: dictionary
|
||||
type: snippet
|
||||
tags: [dictionary]
|
||||
cover: goat-wooden-cottage
|
||||
firstSeen: 2021-01-07T23:15:48+02:00
|
||||
lastUpdated: 2021-01-07T23:15:48+02:00
|
||||
dateModified: 2021-01-07T23:15:48+02:00
|
||||
---
|
||||
|
||||
Finds the key of the minimum value in a dictionary.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Dictionary keys
|
||||
tags: dictionary,list
|
||||
type: snippet
|
||||
tags: [dictionary,list]
|
||||
cover: succulent-5
|
||||
firstSeen: 2018-04-01T23:56:31+03:00
|
||||
lastUpdated: 2020-11-02T19:28:05+02:00
|
||||
dateModified: 2020-11-02T19:28:05+02:00
|
||||
---
|
||||
|
||||
Creates a flat list of all the keys in a flat dictionary.
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
---
|
||||
title: Km to miles
|
||||
tags: math
|
||||
type: snippet
|
||||
tags: [math]
|
||||
unlisted: true
|
||||
cover: interior-5
|
||||
firstSeen: 2020-10-04T00:23:49+03:00
|
||||
lastUpdated: 2021-01-04T12:47:04+02:00
|
||||
dateModified: 2021-01-04T12:47:04+02:00
|
||||
---
|
||||
|
||||
Converts kilometers to miles.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Last list element
|
||||
tags: list
|
||||
type: snippet
|
||||
tags: [list]
|
||||
cover: lake-runner
|
||||
firstSeen: 2019-08-20T15:11:47+03:00
|
||||
lastUpdated: 2020-11-02T19:28:05+02:00
|
||||
dateModified: 2020-11-02T19:28:05+02:00
|
||||
---
|
||||
|
||||
Returns the last element in a list.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Least common multiple
|
||||
tags: math,list
|
||||
type: snippet
|
||||
tags: [math,list]
|
||||
cover: fruit-feast
|
||||
firstSeen: 2018-01-08T22:30:17+02:00
|
||||
lastUpdated: 2020-11-02T19:31:15+02:00
|
||||
dateModified: 2020-11-02T19:31:15+02:00
|
||||
---
|
||||
|
||||
Returns the least common multiple of a list of numbers.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
---
|
||||
title: Longest item
|
||||
tags: list,string
|
||||
type: snippet
|
||||
tags: [list,string]
|
||||
cover: keyboard-tea
|
||||
firstSeen: 2019-08-20T15:27:49+03:00
|
||||
lastUpdated: 2021-10-17T18:24:43+02:00
|
||||
dateModified: 2021-10-17T18:24:43+02:00
|
||||
---
|
||||
|
||||
Takes any number of iterable objects or objects with a length property and returns the longest one.
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user